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:
xavier
2012-05-09 02:31:41 +00:00
parent f54e3bb90b
commit dd237b148e
4 changed files with 27 additions and 8 deletions

View File

@@ -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.