Changeset View
Changeset View
Standalone View
Standalone View
sidebar/SidebarMode.h
Show All 15 Lines | |||||
16 | * Free Software Foundation, Inc., * | 16 | * Free Software Foundation, Inc., * | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | #ifndef SIDEBARMODE_H | 20 | #ifndef SIDEBARMODE_H | ||
21 | #define SIDEBARMODE_H | 21 | #define SIDEBARMODE_H | ||
22 | 22 | | |||
23 | #include "BaseMode.h" | 23 | #include "BaseMode.h" | ||
24 | #include <QWidget> | ||||
24 | 25 | | |||
25 | class ModuleView; | 26 | class ModuleView; | ||
26 | class KAboutData; | 27 | class KAboutData; | ||
27 | class QModelIndex; | 28 | class QModelIndex; | ||
28 | class QAbstractItemView; | 29 | class QAbstractItemView; | ||
29 | class QAbstractItemModel; | 30 | class QAbstractItemModel; | ||
30 | 31 | | |||
32 | class FocusHackWidget : public QWidget { | ||||
33 | Q_OBJECT | ||||
34 | public: | ||||
35 | FocusHackWidget(QWidget *parent = nullptr); | ||||
36 | ~FocusHackWidget(); | ||||
37 | | ||||
38 | public Q_SLOTS: | ||||
39 | void focusNext(); | ||||
40 | void focusPrevious(); | ||||
41 | }; | ||||
42 | | ||||
31 | class SidebarMode : public BaseMode | 43 | class SidebarMode : public BaseMode | ||
32 | { | 44 | { | ||
33 | Q_OBJECT | 45 | Q_OBJECT | ||
34 | 46 | | |||
35 | Q_PROPERTY(QAbstractItemModel *categoryModel READ categoryModel CONSTANT) | 47 | Q_PROPERTY(QAbstractItemModel *categoryModel READ categoryModel CONSTANT) | ||
36 | Q_PROPERTY(QAbstractItemModel *subCategoryModel READ subCategoryModel CONSTANT) | 48 | Q_PROPERTY(QAbstractItemModel *subCategoryModel READ subCategoryModel CONSTANT) | ||
37 | Q_PROPERTY(QAbstractItemModel *mostUsedModel READ mostUsedModel CONSTANT) | 49 | Q_PROPERTY(QAbstractItemModel *mostUsedModel READ mostUsedModel CONSTANT) | ||
38 | Q_PROPERTY(int activeCategory READ activeCategory WRITE setActiveCategory NOTIFY activeCategoryChanged) | 50 | Q_PROPERTY(int activeCategory READ activeCategory WRITE setActiveCategory NOTIFY activeCategoryChanged) | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |