From 6da2d40d3c6f288695ece0384bbad229b345f2b8 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 13 Aug 2013 10:49:59 -0300 Subject: Added completion for buddy, divemaster, location and suit. Added completion for buddy, divemaster, location and suit. The completions uses some models that I created in the last commit - everytime that a divelog file is loaded, it creates a list of completion items. Signed-off-by: Tomaz Canabrava --- qt-ui/maintab.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'qt-ui/maintab.h') diff --git a/qt-ui/maintab.h b/qt-ui/maintab.h index 745f401a4..8c398a77d 100644 --- a/qt-ui/maintab.h +++ b/qt-ui/maintab.h @@ -12,6 +12,8 @@ #include "models.h" +class QCompleter; + namespace Ui { class MainTab; @@ -27,6 +29,13 @@ struct NotesBackup{ QString divemaster; }; +struct Completers{ + QCompleter *location; + QCompleter *divemaster; + QCompleter *buddy; + QCompleter *suit; +}; + class MainTab : public QTabWidget { Q_OBJECT @@ -72,6 +81,7 @@ private: QPushButton *addCylinder; QPushButton *addWeight; enum { NONE, DIVE, TRIP } editMode; + Completers completers; void enableEdition(); }; -- cgit v1.2.3-70-g09d2