Resolved issue #473. Tape 'Preferences' cause loss of focus
--HG-- branch : develop
This commit is contained in:
parent
cc84b6e7d6
commit
cd9c6c99ae
|
@ -103,6 +103,7 @@ void TapeConfigurationPage::Apply()
|
||||||
systemChanged = false;
|
systemChanged = false;
|
||||||
|
|
||||||
qApp->LoadTranslation(locale);
|
qApp->LoadTranslation(locale);
|
||||||
|
qApp->processEvents();// force to call changeEvent
|
||||||
|
|
||||||
// Part about measurments will not be updated automatically
|
// Part about measurments will not be updated automatically
|
||||||
qApp->RetranslateTables();
|
qApp->RetranslateTables();
|
||||||
|
|
|
@ -168,7 +168,6 @@ void TMainWindow::RetranslateTable()
|
||||||
{
|
{
|
||||||
const int row = ui->tableWidget->currentRow();
|
const int row = ui->tableWidget->currentRow();
|
||||||
RefreshTable();
|
RefreshTable();
|
||||||
ShowUnits();
|
|
||||||
ui->tableWidget->selectRow(row);
|
ui->tableWidget->selectRow(row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2214,6 +2213,8 @@ void TMainWindow::RefreshTable()
|
||||||
ui->tableWidget->blockSignals(true);
|
ui->tableWidget->blockSignals(true);
|
||||||
ui->tableWidget->clearContents();
|
ui->tableWidget->clearContents();
|
||||||
|
|
||||||
|
ShowUnits();
|
||||||
|
|
||||||
const QMap<QString, QSharedPointer<VMeasurement> > table = data->DataMeasurements();
|
const QMap<QString, QSharedPointer<VMeasurement> > table = data->DataMeasurements();
|
||||||
QMap<int, QSharedPointer<VMeasurement> > orderedTable;
|
QMap<int, QSharedPointer<VMeasurement> > orderedTable;
|
||||||
QMap<QString, QSharedPointer<VMeasurement> >::const_iterator iterMap;
|
QMap<QString, QSharedPointer<VMeasurement> >::const_iterator iterMap;
|
||||||
|
@ -2585,7 +2586,6 @@ void TMainWindow::UpdatePatternUnit()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ShowUnits();
|
|
||||||
RefreshTable();
|
RefreshTable();
|
||||||
|
|
||||||
search->RefreshList(ui->lineEditFind->text());
|
search->RefreshList(ui->lineEditFind->text());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user