equal
deleted
inserted
replaced
28 class QSortFilterProxyModel; |
28 class QSortFilterProxyModel; |
29 class LineEditCursor; |
29 class LineEditCursor; |
30 |
30 |
31 class HatListView : public QListView |
31 class HatListView : public QListView |
32 { |
32 { |
33 friend class HatPrompt; |
33 friend class HatPrompt; |
34 |
34 |
35 public: |
35 public: |
36 HatListView(QWidget* parent = 0) : QListView(parent){} |
36 HatListView(QWidget* parent = 0) : QListView(parent){} |
37 }; |
37 }; |
38 |
38 |
39 class HatPrompt : public QDialog |
39 class HatPrompt : public QDialog |
40 { |
40 { |
47 LineEditCursor * txtFilter; |
47 LineEditCursor * txtFilter; |
48 HatListView * list; |
48 HatListView * list; |
49 QSortFilterProxyModel * filterModel; |
49 QSortFilterProxyModel * filterModel; |
50 |
50 |
51 private slots: |
51 private slots: |
52 void onAccepted(); |
52 void onAccepted(); |
53 void hatChosen(const QModelIndex & index); |
53 void hatChosen(const QModelIndex & index); |
54 void filterChanged(const QString & text); |
54 void filterChanged(const QString & text); |
55 void moveUp(); |
55 void moveUp(); |
56 void moveDown(); |
56 void moveDown(); |
57 void moveLeft(); |
57 void moveLeft(); |