mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
Title block template editor: added tooltips to helper cells to ensure their content remains readable even when their size is reduced.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1772 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -118,6 +118,17 @@ QList<QAction *> HelperCell::actions() const {
|
||||
return actions_;
|
||||
}
|
||||
|
||||
/**
|
||||
@param text New label displayed by this helper cell
|
||||
@param set_as_tooltip If true, the text is also used as tooltip.
|
||||
*/
|
||||
void HelperCell::setLabel(const QString &text, bool set_as_tooltip) {
|
||||
label = text;
|
||||
if (set_as_tooltip) {
|
||||
setToolTip(text);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Handle context menu events.
|
||||
@param event Context menu event.
|
||||
|
||||
Reference in New Issue
Block a user