mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
04cdfce782
A custom tag widget has been added to MainTab. Tags are seperated by a comma ",". The implementation supports escaping a comma by using "\,". While typing, the widget supports the user by suggesting tags using a QCompleter. Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
41 lines
801 B
C++
41 lines
801 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();
|
|
};
|
|
|
|
class TagCompletionModel : public QStringListModel {
|
|
Q_OBJECT
|
|
public:
|
|
static TagCompletionModel* instance();
|
|
void updateModel();
|
|
};
|
|
|
|
#endif
|