Now that Plasma::Icon is fixed, we don't need to enforce a maximum size any more

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839769
This commit is contained in:
Alex Merry 2008-07-30 19:13:06 +00:00
parent 5e831bce34
commit 8febce6910

View File

@ -76,10 +76,7 @@ void ToolBox::addTool(QAction *action)
tool->setAction(action);
tool->setDrawBackground(true);
tool->setOrientation(Qt::Horizontal);
QSizeF iconSize = tool->sizeFromIconSize(22);
tool->setMinimumSize(iconSize);
tool->setMaximumSize(iconSize);
tool->resize(tool->size());
tool->resize(tool->sizeFromIconSize(22));
tool->hide();
const int height = static_cast<int>(tool->boundingRect().height());