mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: change display mode no signal.
Change-Id: Ie92ae17b5c8f98038beff15f677efea3748f3ea3
This commit is contained in:
parent
59aaed5434
commit
79922e8984
Notes:
gerrit
2018-05-24 14:57:21 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: rekols <rekols@foxmail.com> Submitted-by: rekols <rekols@foxmail.com> Submitted-at: Thu, 24 May 2018 14:57:21 +0800 Reviewed-on: https://cr.deepin.io/34801 Project: dde/dde-dock Branch: refs/heads/master
@ -173,6 +173,8 @@ void MainPanel::setEffectEnabled(const bool enabled)
|
||||
void MainPanel::moveEvent(QMoveEvent* e)
|
||||
{
|
||||
DBlurEffectWidget::moveEvent(e);
|
||||
|
||||
QTimer::singleShot(500, this, &MainPanel::geometryChanged);
|
||||
}
|
||||
|
||||
void MainPanel::resizeEvent(QResizeEvent *e)
|
||||
@ -181,6 +183,8 @@ void MainPanel::resizeEvent(QResizeEvent *e)
|
||||
|
||||
m_itemAdjustTimer->start();
|
||||
// m_effectWidget->resize(e->size());
|
||||
|
||||
QTimer::singleShot(500, this, &MainPanel::geometryChanged);
|
||||
}
|
||||
|
||||
void MainPanel::dragEnterEvent(QDragEnterEvent *e)
|
||||
@ -492,9 +496,6 @@ void MainPanel::adjustItemSize()
|
||||
--extraDecrease;
|
||||
}
|
||||
|
||||
// make it after the adjustment to send signals.
|
||||
emit geometryChanged();
|
||||
|
||||
// ensure all extra space assigned
|
||||
Q_ASSERT(extraDecrease == 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user