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/diveplanner.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/diveplanner.cpp')
-rw-r--r-- | desktop-widgets/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index 91f8e2aba..6ec14795f 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -62,7 +62,7 @@ void DiveHandler::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) // don't allow removing the last point if (plannerModel->rowCount() > 1) { m.addSeparator(); - m.addAction(QObject::tr("Remove this point"), this, SLOT(selfRemove())); + m.addAction(gettextFromC::tr("Remove this point"), this, SLOT(selfRemove())); m.exec(event->screenPos()); } } |