OSDN Git Service

gwenview: remove semantic info leftovers
authorIvailo Monev <xakepa10@gmail.com>
Tue, 4 Jul 2023 15:10:56 +0000 (18:10 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 4 Jul 2023 15:10:56 +0000 (18:10 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
gwenview/app/filtercontroller.cpp
gwenview/app/gvcore.cpp
gwenview/app/gvcore.h
gwenview/app/main.cpp
gwenview/lib/sorteddirmodel.cpp
gwenview/lib/sorteddirmodel.h

index ba2d55b..5425075 100644 (file)
@@ -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
index 098ff7f..5f0d683 100644 (file)
@@ -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;
index d7e8dbb..3348b81 100644 (file)
@@ -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);
index 3c9ac54..f742dc5 100644 (file)
@@ -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();
index 8c318ed..08644dc 100644 (file)
@@ -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();
index 85d5221..457bd24 100644 (file)
@@ -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: