add tooltips to items, makes it easier to figure out what they do when zoomed out
BUG:177835 svn path=/trunk/KDE/kdelibs/; revision=897284
This commit is contained in:
parent
32846f0e75
commit
e9411c577e
@ -121,6 +121,7 @@ void ToolBox::addTool(QAction *action)
|
|||||||
const int height = static_cast<int>(tool->boundingRect().height());
|
const int height = static_cast<int>(tool->boundingRect().height());
|
||||||
tool->setPos(toolPosition(height));
|
tool->setPos(toolPosition(height));
|
||||||
tool->setZValue(zValue() + 1);
|
tool->setZValue(zValue() + 1);
|
||||||
|
tool->setToolTip(action->text());
|
||||||
|
|
||||||
//make enabled/disabled tools appear/disappear instantly
|
//make enabled/disabled tools appear/disappear instantly
|
||||||
connect(tool, SIGNAL(changed()), this, SLOT(updateToolBox()));
|
connect(tool, SIGNAL(changed()), this, SLOT(updateToolBox()));
|
||||||
|
Loading…
Reference in New Issue
Block a user