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->setAction(action);
|
||||||
tool->setDrawBackground(true);
|
tool->setDrawBackground(true);
|
||||||
tool->setOrientation(Qt::Horizontal);
|
tool->setOrientation(Qt::Horizontal);
|
||||||
QSizeF iconSize = tool->sizeFromIconSize(22);
|
tool->resize(tool->sizeFromIconSize(22));
|
||||||
tool->setMinimumSize(iconSize);
|
|
||||||
tool->setMaximumSize(iconSize);
|
|
||||||
tool->resize(tool->size());
|
|
||||||
|
|
||||||
tool->hide();
|
tool->hide();
|
||||||
const int height = static_cast<int>(tool->boundingRect().height());
|
const int height = static_cast<int>(tool->boundingRect().height());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user