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:
Aaron J. Seigo 2008-12-15 16:42:29 +00:00
parent 32846f0e75
commit e9411c577e

View File

@ -121,6 +121,7 @@ void ToolBox::addTool(QAction *action)
const int height = static_cast<int>(tool->boundingRect().height());
tool->setPos(toolPosition(height));
tool->setZValue(zValue() + 1);
tool->setToolTip(action->text());
//make enabled/disabled tools appear/disappear instantly
connect(tool, SIGNAL(changed()), this, SLOT(updateToolBox()));