diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-29 10:41:12 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-29 10:41:12 -0400 |
commit | f7ef0f0a21d56e3c9c946c6f4010a713835c8cbe (patch) | |
tree | 5346db8ca342e4b37a8add733f55122264c6cd37 /src-qt5/core/libLumina/RootSubWindow.cpp | |
parent | Add the ability to change the "Size" property for windows. (diff) | |
download | lumina-f7ef0f0a21d56e3c9c946c6f4010a713835c8cbe.tar.gz lumina-f7ef0f0a21d56e3c9c946c6f4010a713835c8cbe.tar.bz2 lumina-f7ef0f0a21d56e3c9c946c6f4010a713835c8cbe.zip |
Make sure the global position of a window is/can be set as needed.
Diffstat (limited to 'src-qt5/core/libLumina/RootSubWindow.cpp')
-rw-r--r-- | src-qt5/core/libLumina/RootSubWindow.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/RootSubWindow.cpp b/src-qt5/core/libLumina/RootSubWindow.cpp index 66cfbc6a..59cfc662 100644 --- a/src-qt5/core/libLumina/RootSubWindow.cpp +++ b/src-qt5/core/libLumina/RootSubWindow.cpp @@ -412,11 +412,18 @@ void RootSubWindow::leaveEvent(QEvent *ev){ }*/ void RootSubWindow::resizeEvent(QResizeEvent *ev){ - qDebug() << "Got Resize Event:" << ev->size(); + //qDebug() << "Got Resize Event:" << ev->size(); WIN->requestProperty(NativeWindow::Size, WinWidget->size()); QFrame::resizeEvent(ev); } + /*void RootSubWindow::showEvent(QShowEvent *ev){ WIN->requestProperty(NativeWindow::Visible, true); QFrame::showEvent(ev); }*/ + +void RootSubWindow::moveEvent(QMoveEvent *ev){ + //qDebug() << "Got Move Event:" << ev->pos(); + WIN->setProperty(NativeWindow::GlobalPos, WinWidget->mapToGlobal(QPoint(0,0)) ); + QFrame::moveEvent(ev); +} |