gwenview: remove semantic info leftovers

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-04 18:10:56 +03:00
parent de8207696d
commit 6983e81516
6 changed files with 0 additions and 28 deletions

View 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

View 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;

View 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);

View 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();

View 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();

View 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: