vertical size policy is fixed;
use a preferred icon size svn path=/trunk/KDE/kdelibs/; revision=1118324
This commit is contained in:
parent
5b49fc05e1
commit
35cb858197
@ -139,6 +139,8 @@ void InternalToolBox::addTool(QAction *action)
|
||||
tool->setDrawBackground(true);
|
||||
tool->setOrientation(Qt::Horizontal);
|
||||
tool->resize(tool->sizeFromIconSize(KIconLoader::SizeSmallMedium));
|
||||
tool->setPreferredIconSize(QSizeF(KIconLoader::SizeSmallMedium, KIconLoader::SizeSmallMedium));
|
||||
tool->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
|
||||
tool->hide();
|
||||
const int height = static_cast<int>(tool->boundingRect().height());
|
||||
|
Loading…
x
Reference in New Issue
Block a user