Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Verbruggen <erik@verbruggen.consulting>2022-03-11 16:29:33 +0300
committerHannah von Reth <vonreth@kde.org>2022-03-14 13:21:21 +0300
commit96ede25289e410b98af26a83b09045167bac9e01 (patch)
tree67f83e78ade0c0ffc9591c67eca95f1877593bac /src/gui/protocolwidget.h
parentbfb6743cb507934bd508c7817705a21e085492b2 (diff)
Fix filter menus
- replaced "No filter" option text with "All", to avoid the "No filter is not enabled" situation - replace the "Filter" label on the button with "1 Filter"/"2 Filters" when a filter is active, so a user can immediately see that without having to open the filter pop-up
Diffstat (limited to 'src/gui/protocolwidget.h')
-rw-r--r--src/gui/protocolwidget.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/protocolwidget.h b/src/gui/protocolwidget.h
index 5dfb36319..cf540cbbb 100644
--- a/src/gui/protocolwidget.h
+++ b/src/gui/protocolwidget.h
@@ -26,6 +26,8 @@
#include "protocolitem.h"
#include "ui_protocolwidget.h"
+#include "models/models.h"
+
class QPushButton;
class QSortFilterProxyModel;
@@ -49,17 +51,18 @@ public:
~ProtocolWidget() override;
static void showContextMenu(QWidget *parent, ProtocolItemModel *model, const QModelIndexList &items);
- static QMenu *showFilterMenu(QWidget *parent, QSortFilterProxyModel *model, int role, const QString &columnName);
+ static QMenu *showFilterMenu(QWidget *parent, SignalledQSortFilterProxyModel *model, int role, const QString &columnName);
public slots:
void slotItemCompleted(const QString &folder, const SyncFileItemPtr &item);
+ void filterDidChange();
private slots:
void slotItemContextMenu();
private:
ProtocolItemModel *_model;
- QSortFilterProxyModel *_sortModel;
+ SignalledQSortFilterProxyModel *_sortModel;
Ui::ProtocolWidget *_ui;
};
}