mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-01 02:48:05 +01:00
Hmmmm.
This commit is contained in:
parent
292cfde3e2
commit
b946da1b87
@ -17,3 +17,7 @@ MessagesProxyModel::MessagesProxyModel(QObject *parent)
|
|||||||
MessagesProxyModel::~MessagesProxyModel() {
|
MessagesProxyModel::~MessagesProxyModel() {
|
||||||
qDebug("Destroying MessagesProxyModel instance.");
|
qDebug("Destroying MessagesProxyModel instance.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool MessagesProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const {
|
||||||
|
return QSortFilterProxyModel::lessThan(left, right);
|
||||||
|
}
|
||||||
|
@ -14,6 +14,9 @@ class MessagesProxyModel : public QSortFilterProxyModel {
|
|||||||
explicit MessagesProxyModel(QObject *parent = 0);
|
explicit MessagesProxyModel(QObject *parent = 0);
|
||||||
virtual ~MessagesProxyModel();
|
virtual ~MessagesProxyModel();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
MessagesModel *m_sourceModel;
|
MessagesModel *m_sourceModel;
|
||||||
};
|
};
|
||||||
|
@ -20,4 +20,6 @@ void MessagesView::setupAppearance() {
|
|||||||
setDragDropMode(QAbstractItemView::NoDragDrop);
|
setDragDropMode(QAbstractItemView::NoDragDrop);
|
||||||
setExpandsOnDoubleClick(false);
|
setExpandsOnDoubleClick(false);
|
||||||
setRootIsDecorated(false);
|
setRootIsDecorated(false);
|
||||||
|
setItemsExpandable(false);
|
||||||
|
setSortingEnabled(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user