mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-18 10:02:41 -05:00
added sorting and filtering for files using a QPSortFilterProxyModel but it doesnt work yet
This commit is contained in:
parent
32050af8da
commit
c9019a7e99
7 changed files with 62 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue