equal
deleted
inserted
replaced
54 ~CntHistoryModel(); |
54 ~CntHistoryModel(); |
55 |
55 |
56 public: // from QAbstractTableModel/QAbstractItemModel |
56 public: // from QAbstractTableModel/QAbstractItemModel |
57 QVariant data(const QModelIndex& index, int role) const; |
57 QVariant data(const QModelIndex& index, int role) const; |
58 int rowCount(const QModelIndex& parent = QModelIndex()) const; |
58 int rowCount(const QModelIndex& parent = QModelIndex()) const; |
59 void sort(int column = 0, Qt::SortOrder order = Qt::AscendingOrder); |
|
60 |
59 |
61 public: |
60 public: |
62 void clearHistory(); |
61 void clearHistory(); |
63 void markAllAsSeen(); |
62 void markAllAsSeen(); |
64 void sortAndRefresh(Qt::SortOrder order = Qt::AscendingOrder); |
63 void sortAndRefresh(Qt::SortOrder order = Qt::AscendingOrder); |
66 private: |
65 private: |
67 void doBeginInsertRows(const QModelIndex &parent, int first, int last); |
66 void doBeginInsertRows(const QModelIndex &parent, int first, int last); |
68 void doEndInsertRows(); |
67 void doEndInsertRows(); |
69 void doBeginRemoveRows(const QModelIndex &parent, int first, int last); |
68 void doBeginRemoveRows(const QModelIndex &parent, int first, int last); |
70 void doEndRemoveRows(); |
69 void doEndRemoveRows(); |
|
70 void doBeginResetModel(); |
|
71 void doEndResetModel(); |
71 void doDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); |
72 void doDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); |
72 |
73 |
73 private: |
74 private: |
74 CntHistoryModelPrivate* const d_ptr; |
75 CntHistoryModelPrivate* const d_ptr; |
75 Q_DECLARE_PRIVATE_D(d_ptr, CntHistoryModel) |
76 Q_DECLARE_PRIVATE_D(d_ptr, CntHistoryModel) |