]> Devoid-pointer.net GitWeb - anyanka.git/commitdiff
Set input fields locales in ExportGraphToImageDialog before setting their
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 3 Apr 2015 12:19:57 +0000 (14:19 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 3 Apr 2015 12:19:57 +0000 (14:19 +0200)
initial values

gui/exportgraphtoimagedialog.cpp

index 7311857214d5b0777a959ab977612ba44fe0daec..8ceeb0bfd18f68283e39f073fa5636f0dfcd6f3d 100644 (file)
@@ -51,13 +51,6 @@ ExportGraphToImageDialog::ExportGraphToImageDialog(QList<QByteArray> formats, Pa
   connect(ui->qcbox_signal, SIGNAL(currentIndexChanged(QString)), this, SLOT(changeBounds(QString)));
   connect(ui->qle_destPath, SIGNAL(textChanged(QString)), this, SLOT(onFileNameChanged(QString)));
 
-  ui->qle_destPath->setText(m_lastUsedPath);
-  ui->qle_width->setText(m_locale.toString(params.width));
-  ui->qle_height->setText(m_locale.toString(params.height));
-  ui->qle_dpi->setText(m_locale.toString(params.dpi));
-  ui->qcbox_outputFormat->setCurrentIndex(params.formatIdx);
-  ui->qck_includeInteg->setChecked(params.includePeaks);
-
   ui->qle_width->setLocale(m_locale);
   ui->qle_height->setLocale(m_locale);
   ui->qle_dpi->setLocale(m_locale);
@@ -66,6 +59,13 @@ ExportGraphToImageDialog::ExportGraphToImageDialog(QList<QByteArray> formats, Pa
   ui->qle_toX->setLocale(m_locale);
   ui->qle_toY->setLocale(m_locale);
 
+  ui->qle_destPath->setText(m_lastUsedPath);
+  ui->qle_width->setText(m_locale.toString(params.width));
+  ui->qle_height->setText(m_locale.toString(params.height));
+  ui->qle_dpi->setText(m_locale.toString(params.dpi));
+  ui->qcbox_outputFormat->setCurrentIndex(params.formatIdx);
+  ui->qck_includeInteg->setChecked(params.includePeaks);
+
   m_intValidator = new QIntValidator(this);
   if (m_intValidator != nullptr) {
     m_intValidator->setLocale(m_locale);