diff options
Diffstat (limited to 'qt-ui/tagwidget.h')
-rw-r--r-- | qt-ui/tagwidget.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/qt-ui/tagwidget.h b/qt-ui/tagwidget.h index 5f8fb331b..161ec0601 100644 --- a/qt-ui/tagwidget.h +++ b/qt-ui/tagwidget.h @@ -5,11 +5,10 @@ #include <QCompleter> #include <QPair> -class TagWidget : public GroupedLineEdit -{ - Q_OBJECT +class TagWidget : public GroupedLineEdit { + Q_OBJECT public: - explicit TagWidget(QWidget *parent = 0); + explicit TagWidget(QWidget *parent = 0); void setCompleter(QCompleter *completer); QPair<int, int> getCursorTagPosition(); void highlight(); @@ -17,11 +16,14 @@ public: void clear(); void setCursorPosition(int position); void wheelEvent(QWheelEvent *event); -public slots: +public +slots: void reparse(); void completionSelected(QString); + protected: void keyPressEvent(QKeyEvent *e); + private: QCompleter *m_completer; }; |