From c466aa12bd18c04021417c54781312bc8db7da2c Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 29 Dec 2010 11:34:39 +0100 Subject: 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 --- src/history/historymodels.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/history/historymodels.h') 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); -- cgit v1.2.1