|
|
|
@ -51,12 +51,12 @@ NowDockConfigView::NowDockConfigView(Plasma::Containment *containment, NowDockVi
|
|
|
|
|
syncSlideEffect();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//containment->setLocation(Plasma::Types::LeftEdge);
|
|
|
|
|
/*connect(containment, &Plasma::Containment::immutabilityChanged
|
|
|
|
|
, [&](Plasma::Types::ImmutabilityType type) {
|
|
|
|
|
if (type != Plasma::Types::Mutable && isVisible())
|
|
|
|
|
hide();
|
|
|
|
|
});*/
|
|
|
|
|
connect(containment, &Plasma::Containment::immutabilityChanged, this, &NowDockConfigView::immutabilityChanged);
|
|
|
|
|
/* connect(containment, &Plasma::Containment::immutabilityChanged
|
|
|
|
|
, [&](Plasma::Types::ImmutabilityType type) {
|
|
|
|
|
if (type != Plasma::Types::Mutable && this && isVisible())
|
|
|
|
|
hide();
|
|
|
|
|
});*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NowDockConfigView::~NowDockConfigView()
|
|
|
|
@ -196,12 +196,22 @@ void NowDockConfigView::hideEvent(QHideEvent *ev)
|
|
|
|
|
|
|
|
|
|
void NowDockConfigView::focusOutEvent(QFocusEvent *ev)
|
|
|
|
|
{
|
|
|
|
|
//FIXME: I can understand why we need to hide on focus out
|
|
|
|
|
Q_UNUSED(ev);
|
|
|
|
|
const auto *focusWindow = qGuiApp->focusWindow();
|
|
|
|
|
|
|
|
|
|
if (focusWindow && focusWindow->flags().testFlag(Qt::Popup))
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
hide();
|
|
|
|
|
|
|
|
|
|
// hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void NowDockConfigView::immutabilityChanged(Plasma::Types::ImmutabilityType type)
|
|
|
|
|
{
|
|
|
|
|
if (type != Plasma::Types::Mutable && isVisible()) {
|
|
|
|
|
hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// kate: indent-mode cstyle; indent-width 4; replace-tabs on;
|
|
|
|
|