diff options
Diffstat (limited to 'qt-ui/tagwidget.h')
-rw-r--r-- | qt-ui/tagwidget.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/qt-ui/tagwidget.h b/qt-ui/tagwidget.h new file mode 100644 index 000000000..ff19d7283 --- /dev/null +++ b/qt-ui/tagwidget.h @@ -0,0 +1,26 @@ +#ifndef __TAGWIDGET_H +#define __TAGWIDGET_H + +#include "groupedlineedit.h" +#include <QCompleter> +#include <QPair> + +class TagWidget : public GroupedLineEdit +{ + Q_OBJECT +public: + explicit TagWidget(QWidget *parent = 0); + void setCompleter(QCompleter *completer); + QPair<int, int> getCursorTagPosition(); + void highlight(); + void setText(QString text); + void clear(); + void setCursorPosition(int position); +public slots: + void reparse(); + void completionSelected(QString); +private: + QCompleter *m_completer; +}; + +#endif /* __TAGWIDGET_H */ |