diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-07-03 16:52:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-04 05:33:31 +0800 |
commit | 57c01f7a66ccd04fc2e83b67a840519db4661798 (patch) | |
tree | 4134dd2be823ea62ab3370cfb7ee567a6a53d4ec /desktop-widgets/simplewidgets.cpp | |
parent | 2f951413303e10a80e540cacd0c6c282f8ce82cc (diff) | |
download | subsurface-57c01f7a66ccd04fc2e83b67a840519db4661798.tar.gz |
Translations: unify gettextFromC::tr() and QObject::tr()
There were two catch-all classes for translations outside of class
context. gettextFromC was used exclusively from C, but C++ used
both, gettextFromC and QObject. Some of the string were even present
in both. Therefore, unify to gettextFromC throughout the code base.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/simplewidgets.cpp')
-rw-r--r-- | desktop-widgets/simplewidgets.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index 9866925ef..f6b7a3fa1 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -31,13 +31,13 @@ public: { avgIco = new QLabel(owner); avgIco->setPixmap(QIcon(":value-average-icon").pixmap(16, 16)); - avgIco->setToolTip(QObject::tr("Average")); + avgIco->setToolTip(gettextFromC::tr("Average")); minIco = new QLabel(owner); minIco->setPixmap(QIcon(":value-minimum-icon").pixmap(16, 16)); - minIco->setToolTip(QObject::tr("Minimum")); + minIco->setToolTip(gettextFromC::tr("Minimum")); maxIco = new QLabel(owner); maxIco->setPixmap(QIcon(":value-maximum-icon").pixmap(16, 16)); - maxIco->setToolTip(QObject::tr("Maximum")); + maxIco->setToolTip(gettextFromC::tr("Maximum")); avgValue = new QLabel(owner); minValue = new QLabel(owner); maxValue = new QLabel(owner); |