From: Michal MalĂ˝ Date: Fri, 3 Apr 2015 12:19:57 +0000 (+0200) Subject: Set input fields locales in ExportGraphToImageDialog before setting their X-Git-Tag: 0.5c~14 X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=ce0277d3f7e91c91efa70e5931f2ed5d646862db;p=anyanka.git Set input fields locales in ExportGraphToImageDialog before setting their initial values --- diff --git a/gui/exportgraphtoimagedialog.cpp b/gui/exportgraphtoimagedialog.cpp index 7311857..8ceeb0b 100644 --- a/gui/exportgraphtoimagedialog.cpp +++ b/gui/exportgraphtoimagedialog.cpp @@ -51,13 +51,6 @@ ExportGraphToImageDialog::ExportGraphToImageDialog(QList 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 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);