From ee6b2da0370bc3e42eb3ecae32e46644fcce7295 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Wed, 29 Jul 2015 18:05:27 +0200 Subject: [PATCH] Cosmetics related to #1063 --- companion/src/modelprinter.cpp | 6 +++--- companion/src/modelprinter.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/companion/src/modelprinter.cpp b/companion/src/modelprinter.cpp index e11ea37a9..6d9285810 100644 --- a/companion/src/modelprinter.cpp +++ b/companion/src/modelprinter.cpp @@ -75,7 +75,7 @@ QString ModelPrinter::printInputLine(const ExpoData * ed) str += " " + Qt::escape(QObject::tr("Weight")) + QString("(%1)").arg(getGVarString(ed->weight,true)); if (ed->curve.value) str += " " + Qt::escape(ed->curve.toString()); - QString phasesStr = getPhasesStr(ed->phases); + QString phasesStr = printPhases(ed->phases); if (!phasesStr.isEmpty()) str += " " + Qt::escape(phasesStr); if (ed->swtch.type != SWITCH_TYPE_NONE) @@ -129,7 +129,7 @@ QString ModelPrinter::printMixerLine(const MixData * md, int highlightedSource) str += " " + Qt::escape(QObject::tr("Weight")) + QString("(%1)").arg(getGVarString(md->weight, true)); - QString phasesStr = getPhasesStr(md->phases); + QString phasesStr = printPhases(md->phases); if (!phasesStr.isEmpty()) str += " " + Qt::escape(phasesStr); if (md->swtch.type != SWITCH_TYPE_NONE) { @@ -158,7 +158,7 @@ QString ModelPrinter::printMixerLine(const MixData * md, int highlightedSource) return str; } -QString ModelPrinter::getPhasesStr(unsigned int phases) +QString ModelPrinter::printPhases(unsigned int phases) { int numphases = GetCurrentFirmware()->getCapability(FlightModes); diff --git a/companion/src/modelprinter.h b/companion/src/modelprinter.h index 6c4da6751..cb50d5d9a 100644 --- a/companion/src/modelprinter.h +++ b/companion/src/modelprinter.h @@ -29,7 +29,7 @@ private: GeneralSettings * g_eeGeneral; ModelData * g_model; - QString getPhasesStr(unsigned int phases); + QString printPhases(unsigned int phases); }; #endif //#ifndef MODELPRINTER_H \ No newline at end of file