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
int nameLevel
Definition VariableEdit.h:14
void applyReadOnly(bool yn) override
Overridden from base class 'sf::VariableWidgetBase'.
bool focusFrame
Definition VariableEdit.h:13
void setFocusFrame(bool yn) const
Sets the edit frame or no frame property.
void setNameLevel(int level=-1) const
Sets the name level shown.
bool isRequiredProperty(const QString &name) override
Overridden from base class 'sf::ObjectExtension'.
VariableEdit(QWidget *parent=nullptr)
Constructor.
bool hasFocusFrame() const
Gets the focus frame status.
VariableWidgetBase(QWidget *parent, QObject *self)
Constructor.
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10