Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
VariableCheckBox.h
Go to the documentation of this file.
1#pragma once
3
4namespace sf
5{
6
11{
12 Q_OBJECT
13 Q_PROPERTY(int nameLevel READ nameLevel WRITE setNameLevel)
14
15 public:
19 explicit VariableCheckBox(QWidget* parent = nullptr);
20
24 [[nodiscard]] int nameLevel() const;
28 void setNameLevel(int level = -1);
29
30 protected:
34 bool isRequiredProperty(const QString& name) override;
35
39 void applyReadOnly(bool yn) override;
40
41 private:
45 class Private;
46
47 Q_DISABLE_COPY(VariableCheckBox)
48};
49
50}// namespace sf
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition VariableCheckBox.h:11
VariableCheckBox(QWidget *parent=nullptr)
Constructor.
void setNameLevel(int level=-1)
Sets the name level shown.
bool isRequiredProperty(const QString &name) override
Overridden from base class 'sf::ObjectExtension'.
int nameLevel() const
Gets the name level shown.
void applyReadOnly(bool yn) override
Overridden from base class 'sf::VariableWidgetBase'.
Base class for sf::Variable based widgets.
Definition VariableWidgetBase.h:21
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10