equal
deleted
inserted
replaced
18 #ifndef CPTHEMECONTROL_H |
18 #ifndef CPTHEMECONTROL_H |
19 #define CPTHEMECONTROL_H |
19 #define CPTHEMECONTROL_H |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include <QList> |
22 #include <QList> |
|
23 #include <QTimer> |
23 |
24 |
24 #include "cpthemechanger.h" |
25 #include "cpthemechanger.h" |
25 #include <hbicon.h> |
26 #include <hbicon.h> |
26 |
27 |
27 QT_BEGIN_NAMESPACE |
28 QT_BEGIN_NAMESPACE |
53 public slots: |
54 public slots: |
54 void newThemeSelected(const QModelIndex& index); |
55 void newThemeSelected(const QModelIndex& index); |
55 void previewClosed(); |
56 void previewClosed(); |
56 void themeApplied(const QString& theme); |
57 void themeApplied(const QString& theme); |
57 void themeListClosed(); |
58 void themeListClosed(); |
|
59 void themeChangeTimeout(); |
|
60 void themeChangeFinished(); |
58 |
61 |
59 private: |
62 private: |
60 void createThemeList(); |
63 void createThemeList(); |
61 void triggerThemeListClose(); |
64 void triggerThemeListClose(); |
62 void setActiveThemeIndex(); |
65 void setActiveThemeIndex(); |
65 CpThemeListView* mThemeListView; |
68 CpThemeListView* mThemeListView; |
66 CpThemePreview* mThemePreview; |
69 CpThemePreview* mThemePreview; |
67 CpThemeChanger* mThemeChanger; |
70 CpThemeChanger* mThemeChanger; |
68 QAbstractItemModel* mListModel; |
71 QAbstractItemModel* mListModel; |
69 QSortFilterProxyModel* mSortModel; |
72 QSortFilterProxyModel* mSortModel; |
|
73 QTimer* mIdleTimer; |
70 }; |
74 }; |
71 |
75 |
72 #endif //CPTHEMECONTROL_H |
76 #endif //CPTHEMECONTROL_H |