don't lose marco's last fix here; svn mv + svn commits made in the meantime == annoying times with svn
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=839796
This commit is contained in:
parent
c6f99bd6d4
commit
a039cc7302
@ -19,7 +19,7 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "private/toolbox_p.h"
|
||||
#include "toolbox_p.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QGraphicsSceneHoverEvent>
|
||||
@ -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