Make tools use all the available width

This patch makes each tool (action) inside a toolbox use all the width available, 
giving a better UI effect. Before, each tool had it's own width, giving a sensation 
of 'mess' =).


svn path=/trunk/KDE/kdelibs/; revision=926122
This commit is contained in:
Artur Duque de Souza 2009-02-14 17:32:55 +00:00
parent d544dc7c2d
commit 7be090da64

View File

@ -422,10 +422,8 @@ void DesktopToolBox::showToolBox()
icon->action() == d->containment->action("add sibling containment") ||
icon->action() == d->containment->action("add widgets"))) {
icon->setText(icon->action()->text());
icon->resize(icon->sizeFromIconSize(22));
} else {
icon->setText(QString());
icon->resize(icon->sizeFromIconSize(22));
}
}
@ -504,6 +502,9 @@ void DesktopToolBox::showToolBox()
continue;
}
Plasma::IconWidget *icon = qgraphicsitem_cast<Plasma::IconWidget *>(tool);
icon->resize(maxWidth, icon->sizeFromIconSize(22).height());
if (tool->isEnabled()) {
if (isToolbar()) {
//kDebug() << tool << "is enabled";