equal
deleted
inserted
replaced
19 #ifndef THEMEPROMPT_H |
19 #ifndef THEMEPROMPT_H |
20 #define THEMEPROMPT_H |
20 #define THEMEPROMPT_H |
21 |
21 |
22 #include <QWidget> |
22 #include <QWidget> |
23 #include <QDialog> |
23 #include <QDialog> |
|
24 #include <QListView> |
24 |
25 |
25 class QLabel; |
26 class QLineEdit; |
|
27 class QModelIndex; |
|
28 class QSortFilterProxyModel; |
|
29 class LineEditCursor; |
|
30 |
|
31 class ThemeListView : public QListView |
|
32 { |
|
33 friend class ThemePrompt; |
|
34 |
|
35 public: |
|
36 ThemeListView(QWidget* parent = 0) : QListView(parent){} |
|
37 }; |
26 |
38 |
27 class ThemePrompt : public QDialog |
39 class ThemePrompt : public QDialog |
28 { |
40 { |
29 Q_OBJECT |
41 Q_OBJECT |
30 |
42 |
31 public: |
43 public: |
32 ThemePrompt(QWidget* parent); |
44 ThemePrompt(int currentIndex = 0, QWidget* parent = 0); |
33 |
45 |
34 private: |
46 private: |
35 QLabel * lblToolTip; |
47 LineEditCursor * txtFilter; |
|
48 ThemeListView * list; |
|
49 QSortFilterProxyModel * filterModel; |
36 |
50 |
37 private slots: |
51 private slots: |
38 void themeClicked(); |
52 void onAccepted(); |
|
53 void themeChosen(const QModelIndex & index); |
|
54 void filterChanged(const QString & text); |
|
55 void moveUp(); |
|
56 void moveDown(); |
|
57 void moveLeft(); |
|
58 void moveRight(); |
39 }; |
59 }; |
40 |
60 |
41 #endif // THEMEPROMPT_H |
61 #endif // THEMEPROMPT_H |