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:
parent
d544dc7c2d
commit
7be090da64
|
@ -422,10 +422,8 @@ void DesktopToolBox::showToolBox()
|
||||||
icon->action() == d->containment->action("add sibling containment") ||
|
icon->action() == d->containment->action("add sibling containment") ||
|
||||||
icon->action() == d->containment->action("add widgets"))) {
|
icon->action() == d->containment->action("add widgets"))) {
|
||||||
icon->setText(icon->action()->text());
|
icon->setText(icon->action()->text());
|
||||||
icon->resize(icon->sizeFromIconSize(22));
|
|
||||||
} else {
|
} else {
|
||||||
icon->setText(QString());
|
icon->setText(QString());
|
||||||
icon->resize(icon->sizeFromIconSize(22));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -504,6 +502,9 @@ void DesktopToolBox::showToolBox()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Plasma::IconWidget *icon = qgraphicsitem_cast<Plasma::IconWidget *>(tool);
|
||||||
|
icon->resize(maxWidth, icon->sizeFromIconSize(22).height());
|
||||||
|
|
||||||
if (tool->isEnabled()) {
|
if (tool->isEnabled()) {
|
||||||
if (isToolbar()) {
|
if (isToolbar()) {
|
||||||
//kDebug() << tool << "is enabled";
|
//kDebug() << tool << "is enabled";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user