Changeset View
Changeset View
Standalone View
Standalone View
krusader/ActionMan/useractionlistview.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | class UserActionListView : public KrTreeWidget | 31 | class UserActionListView : public KrTreeWidget | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | explicit UserActionListView(QWidget* parent = nullptr); | 36 | explicit UserActionListView(QWidget* parent = nullptr); | ||
37 | ~UserActionListView() override; | 37 | ~UserActionListView() override; | ||
38 | QSize sizeHint() const Q_DECL_OVERRIDE; | 38 | QSize sizeHint() const override; | ||
39 | 39 | | |||
40 | void update(); | 40 | void update(); | ||
41 | void update(KrAction* action); | 41 | void update(KrAction* action); | ||
42 | UserActionListViewItem* insertAction(KrAction* action); | 42 | UserActionListViewItem* insertAction(KrAction* action); | ||
43 | 43 | | |||
44 | KrAction* currentAction() const; | 44 | KrAction* currentAction() const; | ||
45 | void setCurrentAction(const KrAction*); | 45 | void setCurrentAction(const KrAction*); | ||
46 | 46 | | |||
Show All 26 Lines | 69 | public: | |||
73 | 73 | | |||
74 | void setAction(KrAction* action); | 74 | void setAction(KrAction* action); | ||
75 | KrAction* action() const; | 75 | KrAction* action() const; | ||
76 | void update(); | 76 | void update(); | ||
77 | 77 | | |||
78 | /** | 78 | /** | ||
79 | * This reimplements qt's compare-function in order to have categories on the top of the list | 79 | * This reimplements qt's compare-function in order to have categories on the top of the list | ||
80 | */ | 80 | */ | ||
81 | bool operator<(const QTreeWidgetItem &other) const Q_DECL_OVERRIDE; | 81 | bool operator<(const QTreeWidgetItem &other) const override; | ||
82 | 82 | | |||
83 | private: | 83 | private: | ||
84 | KrAction* _action; | 84 | KrAction* _action; | ||
85 | }; | 85 | }; | ||
86 | 86 | | |||
87 | #endif | 87 | #endif |