diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-08-30 18:02:05 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-08-30 18:02:05 +0200 |
commit | 4b160adc90c4a484e7cb94b3c9fd23439f0e12a8 (patch) | |
tree | a1fff65e53a3910cf5e86e75147ed517a51a4978 /src/history/historymodels.h | |
parent | suggestion download: kill previous job before start a new one. (diff) | |
parent | panels directory removed (diff) | |
download | rekonq-4b160adc90c4a484e7cb94b3c9fd23439f0e12a8.tar.xz |
Merge commit 'refs/merge-requests/193' of git://gitorious.org/rekonq/mainline into m193
Diffstat (limited to 'src/history/historymodels.h')
-rw-r--r-- | src/history/historymodels.h | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/src/history/historymodels.h b/src/history/historymodels.h index b61e8969..d193cf86 100644 --- a/src/history/historymodels.h +++ b/src/history/historymodels.h @@ -95,16 +95,16 @@ public: inline bool historyContains(const QString &url) const { - load(); + load(); return m_historyHash.contains(url); } - + inline QList<QString> keys() const { load(); return m_historyHash.keys(); } - + int historyLocation(const QString &url) const; QModelIndex mapFromSource(const QModelIndex &sourceIndex) const; @@ -139,7 +139,7 @@ private: /** * Proxy model for the history model that converts the list * into a tree, one top level node per day. - * + * * Used in the HistoryDialog. * */ @@ -177,28 +177,4 @@ private: }; -// ----------------------------------------------------------------------------------------------------------------- - - -/** - * A modified QSortFilterProxyModel that always accepts - * the root nodes in the tree - * so filtering is only done on the children. - * - * Used in the HistoryDialog. - * - */ - -class TreeProxyModel : public QSortFilterProxyModel -{ - Q_OBJECT - -public: - TreeProxyModel(QObject *parent = 0); - -protected: - bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const; -}; - - #endif // HISTORYMODELS_H |