subsurface/qt-ui/completionmodels.h
Tomaz Canabrava 84f73a5fb1 Added classes to handle the Completion of Dive Editions.
Added classes to handle the completion of dive editions, the
classes are BuddyCompletionModel, DiveMasterCompletionModel,
SuitCompletionModel and LocationCompletionModel, thanks to
plain old C macros, code got really small. and I hope the
logic is better than the Gtk version. :)
Now next step is to integrate it to the Ui. shouldn't be hard.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
2013-08-13 10:30:22 -03:00

34 lines
668 B
C++

#ifndef COMPLETIONMODELS_H
#define COMPLETIONMODELS_H
#include <QStringListModel>
class BuddyCompletionModel : public QStringListModel {
Q_OBJECT
public:
static BuddyCompletionModel* instance();
void updateModel();
};
class DiveMasterCompletionModel : public QStringListModel {
Q_OBJECT
public:
static DiveMasterCompletionModel* instance();
void updateModel();
};
class LocationCompletionModel : public QStringListModel {
Q_OBJECT
public:
static LocationCompletionModel* instance();
void updateModel();
};
class SuitCompletionModel : public QStringListModel {
Q_OBJECT
public:
static SuitCompletionModel* instance();
void updateModel();
};
#endif