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:
parent
5e831bce34
commit
8febce6910
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user