Commit 42938d20 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois

Merge branch 'mantis-1385' into develop

parents eb65664f 3b3d7b42
......@@ -161,6 +161,11 @@ private:
*/
Ui::StatusBarWidget * m_UI;
/**
* \brief Change the scale when scaleLineEdit is pressed or editing is finished with change.
*/
void ChangeScale();
/*-[ PRIVATE SLOTS SECTION ]-----------------------------------------------*/
//
......@@ -175,6 +180,9 @@ private slots:
/**
*/
void on_pixelIndexLineEdit_returnPressed();
/**
*/
void on_scaleLineEdit_returnPressed();
};
} // end namespace 'mvd'
......
......@@ -217,9 +217,26 @@ StatusBarWidget
}
/*****************************************************************************/
void
StatusBarWidget
::on_scaleLineEdit_returnPressed()
{
ChangeScale();
}
void
StatusBarWidget
::on_scaleLineEdit_editingFinished()
{
if(m_UI->scaleLineEdit->isModified())
{
ChangeScale();
}
}
void
StatusBarWidget
::ChangeScale()
{
//
// Cancel if scale text is empty.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment