[Companion] Radio data translation/strings (#5554)

* [Companion] Add Qt tr() functions to all radio data classes instead of using generic QObject type.  (no functional changes)

* Small fix for gcc.

* Move more element name string generation to individual classes; settle on nameToString as function name.

* Also put firmware build options translations into Firmware scope.
This commit is contained in:
Max Paperno
2017-12-21 18:26:11 +01:00
committed by Bertrand Songis
parent 7806c2096d
commit a951292f27
34 changed files with 606 additions and 514 deletions
+4 -1
View File
@@ -60,7 +60,9 @@ enum CSFunctionFamily {
LS_FAMILY_EDGE,
};
class LogicalSwitchData { // Logical Switches data
class LogicalSwitchData {
Q_DECLARE_TR_FUNCTIONS(LogicalSwitchData)
public:
LogicalSwitchData(unsigned int func=0)
{
@@ -80,6 +82,7 @@ class LogicalSwitchData { // Logical Switches data
CSFunctionFamily getFunctionFamily() const;
unsigned int getRangeFlags() const;
QString funcToString() const;
QString nameToString(int index) const;
void convert(RadioDataConversionState & cstate);
};