mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
84f73a5fb1
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>
34 lines
668 B
C++
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
|