mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
feat(dock): the dock display error when insert app or remove app
This commit is contained in:
parent
d53e59a39a
commit
abc6a9dda3
@ -57,6 +57,7 @@ MainPanelControl::MainPanelControl(QWidget *parent)
|
||||
connect(this, SIGNAL(positionChanged()), this, SLOT(onPositionChanged()));
|
||||
|
||||
m_appAreaWidget->installEventFilter(this);
|
||||
m_appAreaSonWidget->installEventFilter(this);
|
||||
}
|
||||
|
||||
MainPanelControl::~MainPanelControl()
|
||||
@ -456,6 +457,12 @@ void MainPanelControl::dragMoveEvent(QDragMoveEvent *e)
|
||||
|
||||
bool MainPanelControl::eventFilter(QObject *watched, QEvent *event)
|
||||
{
|
||||
if (watched == m_appAreaSonWidget) {
|
||||
if (event->type() == QEvent::LayoutRequest) {
|
||||
m_appAreaSonWidget->adjustSize();
|
||||
}
|
||||
}
|
||||
|
||||
if (watched == m_appAreaWidget) {
|
||||
if (event->type() == QEvent::Resize)
|
||||
updateAppAreaSonWidgetSize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user