Changeset View
Changeset View
Standalone View
Standalone View
app/gvcore.cpp
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | |||||
165 | GvCore::~GvCore() | 165 | GvCore::~GvCore() | ||
166 | { | 166 | { | ||
167 | delete d; | 167 | delete d; | ||
168 | } | 168 | } | ||
169 | 169 | | |||
170 | QAbstractItemModel* GvCore::recentFoldersModel() const | 170 | QAbstractItemModel* GvCore::recentFoldersModel() const | ||
171 | { | 171 | { | ||
172 | if (!d->mRecentFoldersModel) { | 172 | if (!d->mRecentFoldersModel) { | ||
173 | d->mRecentFoldersModel = new HistoryModel(const_cast<GvCore*>(this), QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, "recentfolders/")); | 173 | d->mRecentFoldersModel = new HistoryModel(const_cast<GvCore*>(this), QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation) + "/recentfolders/"); | ||
174 | } | 174 | } | ||
175 | return d->mRecentFoldersModel; | 175 | return d->mRecentFoldersModel; | ||
176 | } | 176 | } | ||
177 | 177 | | |||
178 | QAbstractItemModel* GvCore::recentFilesModel() const | 178 | QAbstractItemModel* GvCore::recentFilesModel() const | ||
179 | { | 179 | { | ||
180 | if (!d->mRecentFilesModel) { | 180 | if (!d->mRecentFilesModel) { | ||
181 | d->mRecentFilesModel = new RecentFilesModel(const_cast<GvCore*>(this)); | 181 | d->mRecentFilesModel = new RecentFilesModel(const_cast<GvCore*>(this)); | ||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |