Fix dis/connects in the panelview
When porting to the new syntax I saw that the slot was also missing, I made it trigger the unhide timer. REVIEW: 116613
This commit is contained in:
parent
b388a0d76b
commit
017387a0b2
@ -328,9 +328,9 @@ void PanelView::setVisibilityMode(PanelView::VisibilityMode mode)
|
||||
//life is vastly simpler if we ensure we're visible now
|
||||
show();
|
||||
|
||||
disconnect(containment(), SIGNAL(activate()), this, SLOT(unhide()));
|
||||
disconnect(containment(), &Plasma::Applet::activated, this, &PanelView::unhide);
|
||||
if (!(mode == NormalPanel || mode == WindowsGoBelow)) {
|
||||
connect(containment(), SIGNAL(activate()), this, SLOT(unhide()));
|
||||
connect(containment(), &Plasma::Applet::activated, this, &PanelView::unhide);
|
||||
}
|
||||
|
||||
config().writeEntry("panelVisibility", (int)mode);
|
||||
@ -630,6 +630,11 @@ bool PanelView::event(QEvent *e)
|
||||
return View::event(e);
|
||||
}
|
||||
|
||||
void PanelView::unhide()
|
||||
{
|
||||
m_unhideTimer.start();
|
||||
}
|
||||
|
||||
void PanelView::updateStruts()
|
||||
{
|
||||
if (!containment() || !screen()) {
|
||||
|
@ -110,6 +110,7 @@ private Q_SLOTS:
|
||||
void positionPanel();
|
||||
void restore();
|
||||
void updateUnhideTrigger();
|
||||
void unhide();
|
||||
|
||||
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user