diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-12-29 11:34:39 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-01-07 15:36:49 +0100 |
commit | c466aa12bd18c04021417c54781312bc8db7da2c (patch) | |
tree | ba69fc109c9f2d01bca8a5343b783af1484e6fba /src/history/historymodels.h | |
parent | Disable multi-dimensional scroll button on scrollbars. (diff) | |
download | rekonq-c466aa12bd18c04021417c54781312bc8db7da2c.tar.xz |
Added a visit count parameter to the history.
This change will preserve old history on first load, adding the visit count parameter
and saving the new structure on close
This will used expecially in the Awesome UrlBar ordering suggestions code.
WARNING: HISTORY_VERSION upgrade
CCMAIL:megabigbug@yahoo.fr
Diffstat (limited to 'src/history/historymodels.h')
-rw-r--r-- | src/history/historymodels.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/history/historymodels.h b/src/history/historymodels.h index d193cf86..8cac9245 100644 --- a/src/history/historymodels.h +++ b/src/history/historymodels.h @@ -50,11 +50,6 @@ class REKONQ_TESTS_EXPORT HistoryModel : public QAbstractTableModel { Q_OBJECT -public slots: - void historyReset(); - void entryAdded(); - void entryUpdated(int offset); - public: enum Roles { @@ -66,12 +61,18 @@ public: explicit HistoryModel(HistoryManager *history, QObject *parent = 0); +public Q_SLOTS: + void historyReset(); + void entryAdded(); + void entryUpdated(int offset); + +public: QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; int columnCount(const QModelIndex &parent = QModelIndex()) const; int rowCount(const QModelIndex &parent = QModelIndex()) const; bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()); - + private: HistoryManager *m_historyManager; }; @@ -118,7 +119,7 @@ public: bool removeRows(int row, int count, const QModelIndex &parent = QModelIndex()); QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; -private slots: +private Q_SLOTS: void sourceReset(); void sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); void sourceRowsInserted(const QModelIndex &parent, int start, int end); @@ -165,7 +166,7 @@ public: void setSourceModel(QAbstractItemModel *sourceModel); -private slots: +private Q_SLOTS: void sourceReset(); void sourceRowsInserted(const QModelIndex &parent, int start, int end); void sourceRowsRemoved(const QModelIndex &parent, int start, int end); |