Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
VariableEdit.h
Go to the documentation of this file.
1
#pragma once
2
#include <
gii/global.h
>
3
#include <
gii/qt/VariableWidgetBase.h
>
4
5
namespace
sf
6
{
7
11
class
QDESIGNER_WIDGET_EXPORT
VariableEdit
:
public
VariableWidgetBase
12
{
13
Q_OBJECT
14
Q_PROPERTY(
bool
focusFrame READ hasFocusFrame WRITE setFocusFrame)
15
Q_PROPERTY(
int
nameLevel READ nameLevel WRITE setNameLevel)
16
17
public:
21
explicit
VariableEdit
(QWidget* parent =
nullptr
);
22
27
void
setFocusFrame(
bool
yn) const;
28
33
[[nodiscard]]
bool
hasFocusFrame() const;
34
38
[[nodiscard]]
int
nameLevel() const;
42
void
setNameLevel(
int
level = -1) const;
43
44
protected:
48
bool
isRequiredProperty(const QString& name) override;
49
53
void
applyReadOnly(
bool
yn) override;
54
55
private:
59
struct Private;
60
61
Q_DISABLE_COPY(
VariableEdit
)
62
};
63
64
}
// namespace sf
VariableWidgetBase.h
sf::VariableEdit
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition
VariableEdit.h:12
sf::VariableWidgetBase
Base class for sf::Variable based widgets.
Definition
VariableWidgetBase.h:22
global.h
sf
Definition
Application.h:10
src
com
gii
qt
VariableEdit.h
Generated by
1.9.8