Spreadsheet: use 'text' instead of 'foreground' in tooltip (#18018)

* Spreadsheet: use 'text' instead of 'foreground' in tooltip
This commit is contained in:
luzpaz
2024-12-02 11:32:12 -05:00
committed by GitHub
parent 7541371779
commit ffd3a79751

View File

@@ -91,10 +91,9 @@ void Workbench::activated()
workbenchHelper.get(),
&WorkbenchHelper::setForegroundColor);
}
foregroundColor->setToolTip(QObject::tr("Set cell(s) foreground color"));
foregroundColor->setWhatsThis(
QObject::tr("Sets the Spreadsheet cell(s) foreground color"));
foregroundColor->setStatusTip(QObject::tr("Set cell(s) foreground color"));
foregroundColor->setToolTip(QObject::tr("Set cell(s) text color"));
foregroundColor->setWhatsThis(QObject::tr("Sets the Spreadsheet cell(s) text color"));
foregroundColor->setStatusTip(QObject::tr("Set cell(s) text color"));
bar->addWidget(foregroundColor);
QList<QtColorPicker*> bgList = Gui::getMainWindow()->findChildren<QtColorPicker*>(
@@ -140,7 +139,7 @@ void WorkbenchHelper::setForegroundColor(const QColor& color)
if (!ranges.empty()) {
std::vector<Range>::const_iterator i = ranges.begin();
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Set foreground color"));
Gui::Command::openCommand(QT_TRANSLATE_NOOP("Command", "Set text color"));
for (; i != ranges.end(); ++i) {
Gui::Command::doCommand(Gui::Command::Doc,
"App.ActiveDocument.%s.setForeground('%s', (%f,%f,%f))",