QtCanpool 3.3.0
载入中...
搜索中...
未找到
qxproperty.h
浏览该文件的文档.
1
5#ifndef QXPROPERTY_H
6#define QXPROPERTY_H
7
8#include "qxapp_global.h"
9
10#include <QtCore/QObject>
11#include <QtCore/QString>
12#include <QtCore/QStringList>
13#include <QtCore/QVariant>
14
16
45 Q_GADGET
46public:
59 Q_ENUM(Type)
60
61
67 Q_ENUM(PathMode)
68
69
70 QString key;
72 QString label;
73 Type type = String;
75 QVariant value;
77 QVariant defaultValue;
79 QStringList choices;
81 QString tooltip;
83 PathMode pathMode = ExistingFile;
85 bool readOnly = false;
86};
87
89
90#endif // QXPROPERTY_H
#define QX_APP_END_NAMESPACE
#define QX_APP_EXPORT
#define QX_APP_BEGIN_NAMESPACE
One setting, described well enough to be edited.
Definition qxproperty.h:44
PathMode
What the browse button of a Path property is looking for.
Definition qxproperty.h:62
@ Directory
a folder
Definition qxproperty.h:65
@ AnyFile
a file, whether or not it exists yet
Definition qxproperty.h:64
@ ExistingFile
a file that has to be there
Definition qxproperty.h:63
Type
The kind of value the property takes, and therefore the control it is edited with.
Definition qxproperty.h:48
@ Color
a colour button
Definition qxproperty.h:55
@ Double
a spin box with decimals
Definition qxproperty.h:51
@ Text
a multi line edit
Definition qxproperty.h:53
@ String
a single line edit
Definition qxproperty.h:52
@ Bool
a check box
Definition qxproperty.h:49
@ Font
a font button
Definition qxproperty.h:56
@ Int
a spin box
Definition qxproperty.h:50
@ Enum
a combo box over choices
Definition qxproperty.h:54
@ Path
a line edit with a browse button
Definition qxproperty.h:57