mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-01 07:05:48 +00:00
fix: disable resize of dock popup window
Use setFixedSize instead of resize so that dock popup window is not resizable. Log: disable resize of dock popup window Issue: https://github.com/linuxdeepin/developer-center/issues/6264
This commit is contained in:
parent
27e1493982
commit
326f510e4e
@ -78,7 +78,7 @@ void DockPopupWindow::setContent(QWidget *content)
|
||||
m_lastWidget = content;
|
||||
content->setParent(this);
|
||||
content->show();
|
||||
resize(content->sizeHint());
|
||||
setFixedSize(content->sizeHint());
|
||||
}
|
||||
|
||||
void DockPopupWindow::setExtendWidget(QWidget *widget)
|
||||
@ -142,7 +142,7 @@ void DockPopupWindow::show(const int x, const int y)
|
||||
displayPoint.setX(qMin(screenRect.x() + screenRect.width() - getContent()->width(), displayPoint.x()));
|
||||
}
|
||||
move(displayPoint);
|
||||
resize(m_lastWidget->size());
|
||||
setFixedSize(m_lastWidget->size());
|
||||
DBlurEffectWidget::show();
|
||||
activateWindow();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user