correctly position new activity when adding one
never show text on wider zoom level svn path=/trunk/KDE/kdelibs/; revision=891258
This commit is contained in:
parent
d9c14c87ba
commit
9fd8a3298d
@ -1745,9 +1745,6 @@ void ContainmentPrivate::positionContainments()
|
||||
it.toFront();
|
||||
|
||||
int toolBoxMargin = 0;
|
||||
if (toolBox) {
|
||||
toolBoxMargin = TOOLBOX_MARGIN;
|
||||
}
|
||||
|
||||
int column = 0;
|
||||
int x = 0;
|
||||
@ -1761,6 +1758,12 @@ void ContainmentPrivate::positionContainments()
|
||||
containment->setPos(x, y);
|
||||
//kDebug() << ++count << "setting to" << x << y;
|
||||
|
||||
if (containment->toolBoxItem()) {
|
||||
toolBoxMargin = TOOLBOX_MARGIN;
|
||||
} else {
|
||||
toolBoxMargin = 0;
|
||||
}
|
||||
|
||||
int height = containment->size().height();
|
||||
if (height > rowHeight) {
|
||||
rowHeight = height;
|
||||
|
@ -422,9 +422,10 @@ void DesktopToolBox::showToolBox()
|
||||
|
||||
Plasma::IconWidget *icon = qgraphicsitem_cast<Plasma::IconWidget *>(tool);
|
||||
if (icon) {
|
||||
if (d->viewTransform.m11() == Plasma::scalingFactor(Plasma::DesktopZoom) ||
|
||||
icon->action() == d->containment->action("add sibling containment") ||
|
||||
icon->action() == d->containment->action("add widgets")) {
|
||||
if (d->viewTransform.m11() != Plasma::scalingFactor(Plasma::OverviewZoom) &&
|
||||
(d->viewTransform.m11() == Plasma::scalingFactor(Plasma::DesktopZoom) ||
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user