correct some last toolbox annoyances...
svn path=/trunk/KDE/kdelibs/; revision=893011
This commit is contained in:
parent
5acc95a83b
commit
98b833977b
@ -834,8 +834,8 @@ void Containment::setScreen(int screen, int desktop)
|
|||||||
|
|
||||||
if (immutability() == Mutable) {
|
if (immutability() == Mutable) {
|
||||||
enableAction("remove", screen == -1 ||
|
enableAction("remove", screen == -1 ||
|
||||||
containmentType() != Plasma::Containment::PanelContainment ||
|
containmentType() == Plasma::Containment::PanelContainment ||
|
||||||
containmentType() != Plasma::Containment::CustomPanelContainment);
|
containmentType() == Plasma::Containment::CustomPanelContainment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -314,13 +314,16 @@ QTransform ToolBox::viewTransform() const
|
|||||||
|
|
||||||
void ToolBox::setViewTransform(QTransform transform)
|
void ToolBox::setViewTransform(QTransform transform)
|
||||||
{
|
{
|
||||||
d->viewTransform = transform;
|
|
||||||
if (transform.isScaling()) {
|
if (transform.isScaling()) {
|
||||||
d->toolbar = true;
|
d->toolbar = true;
|
||||||
showToolBox();
|
showToolBox();
|
||||||
} else {
|
} else {
|
||||||
d->toolbar = false;
|
d->toolbar = false;
|
||||||
|
if (d->viewTransform != transform) {
|
||||||
|
hideToolBox();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
d->viewTransform = transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolBox::save(KConfigGroup &cg) const
|
void ToolBox::save(KConfigGroup &cg) const
|
||||||
|
Loading…
Reference in New Issue
Block a user