Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
VariableEdit.h
Go to the documentation of this file.
1#pragma once
3
4namespace sf
5{
6
11{
12 Q_OBJECT
13 Q_PROPERTY(bool focusFrame READ hasFocusFrame WRITE setFocusFrame)
14 Q_PROPERTY(int nameLevel READ nameLevel WRITE setNameLevel)
15
16 public:
20 explicit VariableEdit(QWidget* parent = nullptr);
21
26 void setFocusFrame(bool yn) const;
27
32 [[nodiscard]] bool hasFocusFrame() const;
33
37 [[nodiscard]] int nameLevel() const;
41 void setNameLevel(int level = -1) const;
42
43 protected:
47 bool isRequiredProperty(const QString& name) override;
48
52 void applyReadOnly(bool yn) override;
53
54 private:
58 class Private;
59
60 Q_DISABLE_COPY(VariableEdit)
61};
62
63}// namespace sf
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition VariableEdit.h:11
Base class for sf::Variable based widgets.
Definition VariableWidgetBase.h:21
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10