Gui: Add translations for color bar labels

This commit is contained in:
wmayer
2023-04-18 18:52:10 +02:00
committed by wwmayer
parent 58200ae943
commit bc427724f7
5 changed files with 15 additions and 9 deletions

View File

@@ -24,6 +24,7 @@
#ifndef _PreComp_
# include <sstream>
# include <QCoreApplication>
# include <Inventor/fields/SoMFString.h>
# include <Inventor/nodes/SoBaseColor.h>
# include <Inventor/nodes/SoCoordinate3.h>
@@ -83,6 +84,11 @@ void SoFCColorGradient::finish()
atexit_cleanup();
}
const char* SoFCColorGradient::getColorBarName() const
{
return QT_TRANSLATE_NOOP("QObject", "Color Gradient");
}
void SoFCColorGradient::setMarkerLabel(const SoMFString& label)
{
coinRemoveAllChildren(labels);