Skip to content
Snippets Groups Projects
Commit 42938d20 authored by Ludovic Hussonnois's avatar Ludovic Hussonnois
Browse files

Merge branch 'mantis-1385' into develop

parents eb65664f 3b3d7b42
Branches
Tags
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment