mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-07-05 02:26:11 +02:00
Refactoring.
Code style.
This commit is contained in:
parent
1ed8bf4a46
commit
479866431c
|
@ -28,18 +28,18 @@
|
||||||
|
|
||||||
#include "vformulapropertyeditor.h"
|
#include "vformulapropertyeditor.h"
|
||||||
|
|
||||||
#include <QHBoxLayout>
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QKeyEvent>
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
#include <QFileDialog>
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
#include <QKeyEvent>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QSpacerItem>
|
#include <QSpacerItem>
|
||||||
|
|
||||||
|
#include "../vmisc/vabstractvalapplication.h"
|
||||||
#include "../vpropertyexplorer/vproperty.h"
|
#include "../vpropertyexplorer/vproperty.h"
|
||||||
#include "../vtools/dialogs/support/dialogeditwrongformula.h"
|
#include "../vtools/dialogs/support/dialogeditwrongformula.h"
|
||||||
#include "../vmisc/vabstractvalapplication.h"
|
|
||||||
|
|
||||||
// VFormulaPropertyEditor
|
// VFormulaPropertyEditor
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
@ -88,9 +88,8 @@ void VFormulaPropertyEditor::SetFormula(const VFormula& formula)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VFormulaPropertyEditor::onToolButtonClicked()
|
void VFormulaPropertyEditor::onToolButtonClicked()
|
||||||
{
|
{
|
||||||
QScopedPointer<DialogEditWrongFormula> tmpWidget(
|
QScopedPointer<DialogEditWrongFormula> tmpWidget(new DialogEditWrongFormula(
|
||||||
new DialogEditWrongFormula(m_formula.getData(), m_formula.getToolId(),
|
m_formula.getData(), m_formula.getToolId(), VAbstractValApplication::VApp()->getMainWindow()));
|
||||||
VAbstractValApplication::VApp()->getMainWindow()));
|
|
||||||
tmpWidget->setCheckZero(m_formula.getCheckZero());
|
tmpWidget->setCheckZero(m_formula.getCheckZero());
|
||||||
tmpWidget->setPostfix(m_formula.getPostfix());
|
tmpWidget->setPostfix(m_formula.getPostfix());
|
||||||
tmpWidget->SetFormula(m_formula.GetFormula(FormulaType::FromUser));
|
tmpWidget->SetFormula(m_formula.GetFormula(FormulaType::FromUser));
|
||||||
|
|
Loading…
Reference in a new issue