Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
InformationListIdEdit.h
Go to the documentation of this file.
1#pragma once
3
4#include <QTreeView>
6#include <gii/global.h>
7#include <gii/qt/Namespace.h>
8
9namespace sf
10{
11
12class ResultData;
13
18class _GII_CLASS InformationListIdEdit final : public QTreeView
19{
20 Q_OBJECT
21
22 public:
26 explicit InformationListIdEdit(QWidget* parent);
27
31 void clear();
32
36 void addEntry(InformationBase* info_base, const QString& purpose, const QString& tip = {});
37
41 void addEntry(gii::TypeId type_id, gii::IdType* id, const QString& purpose, const QString& tip = {});
42
43 private:
44 class Private;
45 Private* _p;
46};
47
48}// namespace sf
Base class for all generic information objects to be able to put them in a typed list together.
Definition InformationBase.h:13
Designer widget which allows selecting id for list entries in a list view. Showing the purpose of the...
Definition InformationListIdEdit.h:19
void addEntry(gii::TypeId type_id, gii::IdType *id, const QString &purpose, const QString &tip={})
Same as the sf::InformationListIdModel::addEntry() to no expose the model.
void clear()
Clears the added entries.
void addEntry(InformationBase *info_base, const QString &purpose, const QString &tip={})
Same as the sf::InformationListIdModel::addEntry() to no expose the model.
InformationListIdEdit(QWidget *parent)
Qt default widget constructor.
#define _GII_CLASS
Definition gii/global.h:38
TypeId
Types of id's.
Definition gii/qt/Namespace.h:22
@ ResultData
Type of the id is a result-data.
Definition gii/qt/Namespace.h:27
InformationTypes::id_type IdType
Short type definition for Qt code.
Definition gii/qt/Namespace.h:16
Definition Application.h:10