Resolved issue #439. Widen Formula Dialog.

(grafted from 5a638f3f6092284070e985b98debbd155a48d96d)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-02-01 21:16:53 +02:00
parent a8f97c8fdb
commit 9e9689e16a
3 changed files with 15 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- [#325] Check pattern for inverse compatibility.
# Version 0.4.2
- [#439] Widen Formula Dialog.
- Fixed broken tool dialogs "Intersection arcs" and "Point from arc and tangent".
- [#442] 'Broken Formula' error when using Intersect Circles tool.

View File

@ -307,6 +307,19 @@ void DialogEditWrongFormula::closeEvent(QCloseEvent *event)
DialogTool::closeEvent(event);
}
//---------------------------------------------------------------------------------------------------------------------
void DialogEditWrongFormula::showEvent(QShowEvent *event)
{
DialogTool::showEvent( event );
if ( event->spontaneous() )
{
return;
}
setMaximumSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
setMinimumSize(QSize(0, 0));
}
//---------------------------------------------------------------------------------------------------------------------
void DialogEditWrongFormula::SetFormula(const QString &value)
{

View File

@ -79,6 +79,7 @@ public slots:
protected:
virtual void CheckState() Q_DECL_OVERRIDE;
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
virtual void showEvent( QShowEvent *event ) Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(DialogEditWrongFormula)
Ui::DialogEditWrongFormula *ui;