#include <vformulapropertyeditor.h>
Public Slots | |
void | SetFormula (const VFormula &formula) |
Sets the color of the widget. More... | |
Signals | |
void | dataChangedByUser (const VFormula &GetFormula, VFormulaPropertyEditor *editor) |
This is emitted, when the user changes the color. More... | |
void | dataChanged () |
Public Member Functions | |
VFormulaPropertyEditor (QWidget *parent) | |
Constructor taking a widget as parent. More... | |
virtual | ~VFormulaPropertyEditor () Q_DECL_EQ_DEFAULT |
Destructor. More... | |
VFormula | GetFormula () const |
Returns the formula currently set. More... | |
virtual bool | eventFilter (QObject *obj, QEvent *ev) Q_DECL_OVERRIDE |
Needed for proper event handling. More... | |
Private Slots | |
void | onToolButtonClicked () |
Private Attributes | |
VFormula | formula |
QToolButton * | toolButton |
QLabel * | textLabel |
QSpacerItem * | spacer |
Definition at line 68 of file vformulapropertyeditor.h.
|
explicit |
Constructor taking a widget as parent.
Definition at line 71 of file vformulapropertyeditor.cpp.
References formula, VFormula::getStringValue(), onToolButtonClicked(), spacer, textLabel, and toolButton.
|
virtual |
Destructor.
|
signal |
|
signal |
This is emitted, when the user changes the color.
Referenced by onToolButtonClicked().
|
virtual |
Needed for proper event handling.
Definition at line 139 of file vformulapropertyeditor.cpp.
References toolButton.
VFormula VFormulaPropertyEditor::GetFormula | ( | ) | const |
Returns the formula currently set.
Definition at line 152 of file vformulapropertyeditor.cpp.
References formula.
Referenced by VFormulaProperty::getEditorData().
|
privateslot |
Definition at line 119 of file vformulapropertyeditor.cpp.
References dataChangedByUser(), formula, FromUser, VFormula::getCheckZero(), VFormula::getData(), EditFormulaDialog::GetFormula(), VFormula::GetFormula(), VFormula::getPostfix(), VFormula::getStringValue(), VFormula::getToolId(), qApp, EditFormulaDialog::setCheckZero(), EditFormulaDialog::SetFormula(), VFormula::SetFormula(), EditFormulaDialog::setPostfix(), textLabel, and ToUser.
Referenced by VFormulaPropertyEditor().
|
slot |
Sets the color of the widget.
Definition at line 109 of file vformulapropertyeditor.cpp.
References formula, VFormula::getStringValue(), and textLabel.
Referenced by VFormulaProperty::setEditorData().
|
private |
Definition at line 100 of file vformulapropertyeditor.h.
Referenced by GetFormula(), onToolButtonClicked(), SetFormula(), and VFormulaPropertyEditor().
|
private |
Definition at line 103 of file vformulapropertyeditor.h.
Referenced by VFormulaPropertyEditor().
|
private |
Definition at line 102 of file vformulapropertyeditor.h.
Referenced by onToolButtonClicked(), SetFormula(), and VFormulaPropertyEditor().
|
private |
Definition at line 101 of file vformulapropertyeditor.h.
Referenced by eventFilter(), and VFormulaPropertyEditor().