mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
663ab6e23e
commit
84f73a5fb1
3 changed files with 74 additions and 0 deletions
34
qt-ui/completionmodels.h
Normal file
34
qt-ui/completionmodels.h
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue