From e9084e4d594c649931aed070dd6d3fb31b145d8f Mon Sep 17 00:00:00 2001 From: bsongis Date: Wed, 4 Jun 2014 16:31:27 +0200 Subject: [PATCH] Cosmetics --- companion/src/apppreferencesdialog.cpp | 6 +++--- companion/src/mainwindow.cpp | 9 +++++---- companion/src/wizarddialog.cpp | 16 ++++++++-------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/companion/src/apppreferencesdialog.cpp b/companion/src/apppreferencesdialog.cpp index 485029775..b33f80b55 100644 --- a/companion/src/apppreferencesdialog.cpp +++ b/companion/src/apppreferencesdialog.cpp @@ -174,14 +174,14 @@ void AppPreferencesDialog::initSettings() QString hwSettings; if (g.profile[g.id()].stickPotCalib() == "" ) { - hwSettings = QString(tr("EMPTY: No radio settings stored in profile")); + hwSettings = tr("EMPTY: No radio settings stored in profile"); } else { QString str = g.profile[g.id()].timeStamp(); if (str.isEmpty()) - hwSettings = QString(tr("AVAILABLE: Radio settings of unknown age")); + hwSettings = tr("AVAILABLE: Radio settings of unknown age"); else - hwSettings = QString(tr("AVAILABLE: Radio settings stored %1").arg(str)); + hwSettings = tr("AVAILABLE: Radio settings stored %1").arg(str); } ui->lblGeneralSettings->setText(hwSettings); diff --git a/companion/src/mainwindow.cpp b/companion/src/mainwindow.cpp index e6f568429..3822f9ef3 100644 --- a/companion/src/mainwindow.cpp +++ b/companion/src/mainwindow.cpp @@ -1939,15 +1939,16 @@ void MainWindow::updateProfilesActions() } void MainWindow::createProfile() -{ int i; -for (i=0; iname + "\n"; - str += QString(tr("Model Type: ")) + vehicleName(mix->vehicle) + "\n"; + QString str = tr("Model Name: ") + mix->name + "\n"; + str += tr("Model Type: ") + vehicleName(mix->vehicle) + "\n"; - str += QString(tr("Options: ")) + "["; + str += tr("Options: ") + "["; for (int i=0; ioptions[i]) str += "X"; @@ -1027,7 +1027,7 @@ QString WizardPrinter::print() for (int i=0; ichannel[i].page != Page_None) { Channel ch = mix->channel[i]; - str += QString(tr("Channel %1: ").arg(i+1)); + str += tr("Channel %1: ").arg(i+1); str += printChannel(ch.input1, ch.weight1, ch.input2, ch.weight2 ); str += QString("\n"); }