diff options
author | Arno <arno@disconnect.de> | 2018-03-31 19:32:57 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-03-31 19:32:57 +0200 |
commit | 3dd5dbd7d66a21b8dd8bded05636252d7ef84cba (patch) | |
tree | 3ccc57044fc84cc63a750f50c5f837933ef76f57 /fswidget.h | |
parent | d4dae4ba8633ff8c58bbb4135850ddbd1dfa87a9 (diff) | |
download | SheMov-3dd5dbd7d66a21b8dd8bded05636252d7ef84cba.tar.gz SheMov-3dd5dbd7d66a21b8dd8bded05636252d7ef84cba.tar.bz2 SheMov-3dd5dbd7d66a21b8dd8bded05636252d7ef84cba.zip |
More sorting for FSWidget
Sort size and duration by their actual numbers instead of alphabetically
by the display string.
Diffstat (limited to 'fswidget.h')
-rw-r--r-- | fswidget.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -10,11 +10,12 @@ class QStandardItemModel; class QSortFilterProxyModel; class QContextMenuEvent; class NewMovieWizard; +class FSProxy; class FSWidget : public QWidget { Q_OBJECT public: - enum CustomRoles { FullPathRole = Qt::UserRole + 1}; + enum CustomRoles { FullPathRole = Qt::UserRole + 1, DurationRole = Qt::UserRole + 2, SizeRole = Qt::UserRole + 3 }; explicit FSWidget(QWidget *parent = nullptr); ~FSWidget(); @@ -44,7 +45,7 @@ class FSWidget : public QWidget { QComboBox *mFilterCB; QTreeView *mFileView; QStandardItemModel *mModel; - QSortFilterProxyModel *mProxy; + FSProxy *mProxy; NewMovieWizard *mMovieWizard; int mQueryCount; }; |