mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-29 01:20:32 +01:00
Hmmmm.
This commit is contained in:
parent
292cfde3e2
commit
b946da1b87
@ -17,3 +17,7 @@ MessagesProxyModel::MessagesProxyModel(QObject *parent)
|
||||
MessagesProxyModel::~MessagesProxyModel() {
|
||||
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);
|
||||
virtual ~MessagesProxyModel();
|
||||
|
||||
protected:
|
||||
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
|
||||
|
||||
private:
|
||||
MessagesModel *m_sourceModel;
|
||||
};
|
||||
|
@ -20,4 +20,6 @@ void MessagesView::setupAppearance() {
|
||||
setDragDropMode(QAbstractItemView::NoDragDrop);
|
||||
setExpandsOnDoubleClick(false);
|
||||
setRootIsDecorated(false);
|
||||
setItemsExpandable(false);
|
||||
setSortingEnabled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user