summaryrefslogtreecommitdiffstats
path: root/qt-ui/tagwidget.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-27 20:09:57 -0800
commit76e6420f6b3503b76bd3eec00ab0e53d6ea17a20 (patch)
tree8b50298f41bd29d55bbd6f4301f36ad31dc0b008 /qt-ui/tagwidget.h
parent006265d7a088cff4fea665159dbb454956c2cd76 (diff)
downloadsubsurface-76e6420f6b3503b76bd3eec00ab0e53d6ea17a20.tar.gz
Massive automated whitespace cleanup
I know everyone will hate it. Go ahead. Complain. Call me names. At least now things are consistent and reproducible. If you want changes, have your complaint come with a patch to scripts/whitespace.pl so that we can automate it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tagwidget.h')
-rw-r--r--qt-ui/tagwidget.h12
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;
};