Spreadsheet: set tooltips for fore/background buttons

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=10&t=25289
This commit is contained in:
luzpaz
2017-11-11 12:42:25 -05:00
committed by wmayer
parent 2a443f5ef5
commit d43716fbc5

View File

@@ -84,6 +84,9 @@ void Workbench::activated()
foregroundColor->setCurrentColor(palette.color(QPalette::Foreground));
QObject::connect(foregroundColor, SIGNAL(colorSet(QColor)), workbenchHelper.get(), SLOT(setForegroundColor(QColor)));
}
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"));
bar->addWidget(foregroundColor);
QList<QtColorPicker*> bgList = Gui::getMainWindow()->findChildren<QtColorPicker*>(QString::fromLatin1("Spreadsheet_BackgroundColor"));
@@ -96,6 +99,9 @@ void Workbench::activated()
backgroundColor->setCurrentColor(palette.color(QPalette::Base));
QObject::connect(backgroundColor, SIGNAL(colorSet(QColor)), workbenchHelper.get(), SLOT(setBackgroundColor(QColor)));
}
backgroundColor->setToolTip(QObject::tr("Set cell/s background color"));
backgroundColor->setWhatsThis(QObject::tr("Sets the Spreadsheet cell/s background color"));
backgroundColor->setStatusTip(QObject::tr("Set cell/s background color"));
bar->addWidget(backgroundColor);
initialized = false;