Changeset View
Changeset View
Standalone View
Standalone View
kate/katequickopen.h
Show All 36 Lines | |||||
37 | public: | 37 | public: | ||
38 | KateQuickOpen(QWidget *parent, KateMainWindow *mainWindow); | 38 | KateQuickOpen(QWidget *parent, KateMainWindow *mainWindow); | ||
39 | /** | 39 | /** | ||
40 | * update state | 40 | * update state | ||
41 | * will fill model with current open documents, project documents, ... | 41 | * will fill model with current open documents, project documents, ... | ||
42 | */ | 42 | */ | ||
43 | void update(); | 43 | void update(); | ||
44 | 44 | | |||
45 | void setMatchMode(int mode) { | 45 | int matchMode(); | ||
46 | m_matchMode = mode; | 46 | void setMatchMode(int mode); | ||
47 | } | | |||
48 | | ||||
49 | int matchMode() { | | |||
50 | return m_matchMode; | | |||
51 | } | | |||
52 | 47 | | |||
53 | protected: | 48 | protected: | ||
54 | bool eventFilter(QObject *obj, QEvent *event) override; | 49 | bool eventFilter(QObject *obj, QEvent *event) override; | ||
55 | 50 | | |||
56 | private Q_SLOTS: | 51 | private Q_SLOTS: | ||
57 | void reselectFirst(); | 52 | void reselectFirst(); | ||
58 | 53 | | |||
59 | /** | 54 | /** | ||
Show All 11 Lines | 60 | private: | |||
71 | * our model we search in | 66 | * our model we search in | ||
72 | */ | 67 | */ | ||
73 | KateQuickOpenModel *m_base_model; | 68 | KateQuickOpenModel *m_base_model; | ||
74 | 69 | | |||
75 | /** | 70 | /** | ||
76 | * filtered model we search in | 71 | * filtered model we search in | ||
77 | */ | 72 | */ | ||
78 | QSortFilterProxyModel *m_model; | 73 | QSortFilterProxyModel *m_model; | ||
79 | | ||||
80 | int m_matchMode; | | |||
81 | }; | 74 | }; | ||
82 | 75 | | |||
83 | #endif | 76 | #endif |