added sorting and filtering for files using a QPSortFilterProxyModel but it doesnt work yet

This commit is contained in:
csoler 2020-06-09 21:08:21 +02:00
parent 32050af8da
commit c9019a7e99
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
7 changed files with 62 additions and 17 deletions

View file

@ -34,9 +34,11 @@ class GxsChannelPostsWidgetWithModel;
class GxsChannelPostItem;
class QTreeWidgetItem;
class QSortFilterProxyModel;
class FeedItem;
class RsGxsChannelPostsModel;
class RsGxsChannelPostFilesModel;
class RsGxsChannelPostFilesProxyModel;
class ChannelPostFilesDelegate: public QStyledItemDelegate
{
@ -137,6 +139,7 @@ private slots:
void settingsChanged();
void handlePostsTreeSizeChange(QSize s);
void updateChannelFiles();
void sortColumn(int col,Qt::SortOrder so);
private:
void processSettings(bool load);
@ -159,6 +162,7 @@ private:
RsGxsChannelPostsModel *mChannelPostsModel;
RsGxsChannelPostFilesModel *mChannelPostFilesModel;
RsGxsChannelPostFilesModel *mChannelFilesModel;
RsGxsChannelPostFilesProxyModel *mChannelPostFilesProxyModel ;
/* UI - from Designer */
Ui::GxsChannelPostsWidgetWithModel *ui;