From 338c0f22aabefcfd5a5e87fceb4c82e73af3f5a9 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 28 May 2015 14:40:07 -0300 Subject: Move the models to its own folder This is an attempt to help share code between the desktop version of Subsurface and the mobile version. More code will be moved around and the models will be split in a way that will help recompile times and also creation of different interfaces for different form-factors. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-models/completionmodels.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 qt-models/completionmodels.h (limited to 'qt-models/completionmodels.h') diff --git a/qt-models/completionmodels.h b/qt-models/completionmodels.h new file mode 100644 index 000000000..859b8c007 --- /dev/null +++ b/qt-models/completionmodels.h @@ -0,0 +1,36 @@ +#ifndef COMPLETIONMODELS_H +#define COMPLETIONMODELS_H + +#include + +class BuddyCompletionModel : public QStringListModel { + Q_OBJECT +public: + void updateModel(); +}; + +class DiveMasterCompletionModel : public QStringListModel { + Q_OBJECT +public: + void updateModel(); +}; + +class LocationCompletionModel : public QStringListModel { + Q_OBJECT +public: + void updateModel(); +}; + +class SuitCompletionModel : public QStringListModel { + Q_OBJECT +public: + void updateModel(); +}; + +class TagCompletionModel : public QStringListModel { + Q_OBJECT +public: + void updateModel(); +}; + +#endif // COMPLETIONMODELS_H -- cgit v1.2.3-70-g09d2