core/popupanchor: reposition on popup size change
This commit is contained in:
parent
ebfa8ec448
commit
60388f10ca
3 changed files with 21 additions and 15 deletions
|
|
@ -26,12 +26,12 @@ ProxyPopupWindow::ProxyPopupWindow(QObject* parent): ProxyWindowBase(parent) {
|
|||
|
||||
void ProxyPopupWindow::completeWindow() {
|
||||
this->ProxyWindowBase::completeWindow();
|
||||
QObject::connect(
|
||||
this->window,
|
||||
&QWindow::visibleChanged,
|
||||
this,
|
||||
&ProxyPopupWindow::onVisibleChanged
|
||||
);
|
||||
|
||||
// clang-format off
|
||||
QObject::connect(this->window, &QWindow::visibleChanged, this, &ProxyPopupWindow::onVisibleChanged);
|
||||
QObject::connect(this->window, &QWindow::widthChanged, this, &ProxyPopupWindow::reposition);
|
||||
QObject::connect(this->window, &QWindow::heightChanged, this, &ProxyPopupWindow::reposition);
|
||||
// clang-format on
|
||||
|
||||
this->window->setFlag(Qt::ToolTip);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue