Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkgui
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkgui.

Source-pull-request: linuxdeepin/dtkgui#296
  • Loading branch information
deepin-ci-robot committed Jan 8, 2025
1 parent 1db25d4 commit 3fac147
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ MoveWindowHelper::MoveWindowHelper(QWindow *window)

MoveWindowHelper::~MoveWindowHelper()
{
mapped.remove(qobject_cast<QWindow*>(parent()));
mapped.remove(static_cast<QWindow*>(parent()));
}

void MoveWindowHelper::updateEnableSystemMoveFromProperty()
Expand Down Expand Up @@ -178,7 +178,8 @@ DTreeLandPlatformWindowHelper::DTreeLandPlatformWindowHelper(QWindow *window)

DTreeLandPlatformWindowHelper::~DTreeLandPlatformWindowHelper()
{
windowMap.remove(window());
// see tst_qwindow.cpp tst_QWindow::qobject_castOnDestruction()
windowMap.remove(static_cast<QWindow*>(parent()));
}

bool DTreeLandPlatformWindowHelper::eventFilter(QObject *watched, QEvent *event) {
Expand Down

0 comments on commit 3fac147

Please sign in to comment.