diff --git a/gwenview/app/filtercontroller.cpp b/gwenview/app/filtercontroller.cpp index ba2d55b3..5425075f 100644 --- a/gwenview/app/filtercontroller.cpp +++ b/gwenview/app/filtercontroller.cpp @@ -65,11 +65,7 @@ public: : AbstractSortedDirModelFilter(model) , mText() , mMode(Contains) - {} - - virtual bool needsSemanticInfo() const { - return false; } virtual bool acceptsIndex(const QModelIndex& index) const @@ -167,11 +163,7 @@ public: DateFilter(SortedDirModel* model) : AbstractSortedDirModelFilter(model) , mMode(GreaterOrEqual) - {} - - virtual bool needsSemanticInfo() const { - return false; } virtual bool acceptsIndex(const QModelIndex& index) const diff --git a/gwenview/app/gvcore.cpp b/gwenview/app/gvcore.cpp index 098ff7f9..5f0d6836 100644 --- a/gwenview/app/gvcore.cpp +++ b/gwenview/app/gvcore.cpp @@ -167,11 +167,6 @@ QAbstractItemModel* GvCore::recentUrlsModel() const return d->mRecentUrlsModel; } -AbstractSemanticInfoBackEnd* GvCore::semanticInfoBackEnd() const -{ - return d->mDirModel->semanticInfoBackEnd(); -} - SortedDirModel* GvCore::sortedDirModel() const { return d->mDirModel; diff --git a/gwenview/app/gvcore.h b/gwenview/app/gvcore.h index d7e8dbb2..3348b81c 100644 --- a/gwenview/app/gvcore.h +++ b/gwenview/app/gvcore.h @@ -37,7 +37,6 @@ class KUrl; namespace Gwenview { -class AbstractSemanticInfoBackEnd; class MainWindow; class SortedDirModel; @@ -59,7 +58,6 @@ public: QAbstractItemModel* recentFoldersModel() const; QAbstractItemModel* recentUrlsModel() const; SortedDirModel* sortedDirModel() const; - AbstractSemanticInfoBackEnd* semanticInfoBackEnd() const; void addUrlToRecentFolders(KUrl); void addUrlToRecentUrls(const KUrl& url); diff --git a/gwenview/app/main.cpp b/gwenview/app/main.cpp index 3c9ac541..f742dc56 100644 --- a/gwenview/app/main.cpp +++ b/gwenview/app/main.cpp @@ -136,8 +136,6 @@ int main(int argc, char *argv[]) } // Workaround for QTBUG-38613 - // Another solution would be to port BalooSemanticInfoBackend::refreshAllTags - // to be async rather than using exec(). qApp->sendPostedEvents(0, QEvent::DeferredDelete); return app.exec(); diff --git a/gwenview/lib/sorteddirmodel.cpp b/gwenview/lib/sorteddirmodel.cpp index 8c318ed0..08644dcc 100644 --- a/gwenview/lib/sorteddirmodel.cpp +++ b/gwenview/lib/sorteddirmodel.cpp @@ -198,12 +198,6 @@ bool SortedDirModel::filterAcceptsRow(int row, const QModelIndex& parent) const return KDirSortFilterProxyModel::filterAcceptsRow(row, parent); } -AbstractSemanticInfoBackEnd* SortedDirModel::semanticInfoBackEnd() const -{ - return 0; -} - - void SortedDirModel::applyFilters() { d->mDelayedApplyFiltersTimer.start(); diff --git a/gwenview/lib/sorteddirmodel.h b/gwenview/lib/sorteddirmodel.h index 85d5221b..457bd245 100644 --- a/gwenview/lib/sorteddirmodel.h +++ b/gwenview/lib/sorteddirmodel.h @@ -37,7 +37,6 @@ class KUrl; namespace Gwenview { -class AbstractSemanticInfoBackEnd; struct SortedDirModelPrivate; @@ -52,7 +51,6 @@ public: return mModel; } - virtual bool needsSemanticInfo() const = 0; /** * Returns true if index should be accepted. * Warning: index is a source index of SortedDirModel @@ -100,9 +98,6 @@ public: void reload(); - AbstractSemanticInfoBackEnd* semanticInfoBackEnd() const; - - bool hasDocuments() const; public Q_SLOTS: