Skip to content

Commit

Permalink
Spreadsheet: use 'text' instead of 'foreground' in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
luzpaz authored Nov 20, 2024
1 parent 2819ca4 commit d904328
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Mod/Spreadsheet/Gui/Workbench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ void Workbench::activated()
workbenchHelper.get(),
&WorkbenchHelper::setForegroundColor);
}
foregroundColor->setToolTip(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) foreground color"));
foregroundColor->setStatusTip(QObject::tr("Set cell(s) foreground color"));
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*>(
Expand Down Expand Up @@ -140,7 +140,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))",
Expand Down

0 comments on commit d904328

Please sign in to comment.