summaryrefslogtreecommitdiffstats
path: root/qt-ui/completionmodels.h
diff options
context:
space:
mode:
authorGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-11-02 02:20:02 +0100
committerGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-11-02 03:37:31 +0100
commit04cdfce782f2a104ab5d0ee92de67c7b6271835b (patch)
treef937c8c8a005ef00f880bbcd3d7c56fd043ddfeb /qt-ui/completionmodels.h
parent6fe8cb652191728586f3731dcf6688b5a5b3efbb (diff)
downloadsubsurface-04cdfce782f2a104ab5d0ee92de67c7b6271835b.tar.gz
Added a custom widget for tagging dives
A custom tag widget has been added to MainTab. Tags are seperated by a comma ",". The implementation supports escaping a comma by using "\,". While typing, the widget supports the user by suggesting tags using a QCompleter. Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Diffstat (limited to 'qt-ui/completionmodels.h')
-rw-r--r--qt-ui/completionmodels.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-ui/completionmodels.h b/qt-ui/completionmodels.h
index e4f1770e2..146186531 100644
--- a/qt-ui/completionmodels.h
+++ b/qt-ui/completionmodels.h
@@ -31,4 +31,11 @@ public:
void updateModel();
};
+class TagCompletionModel : public QStringListModel {
+ Q_OBJECT
+public:
+ static TagCompletionModel* instance();
+ void updateModel();
+};
+
#endif