Skip to content

Commit

Permalink
feat: Adapt to the Treeland platform
Browse files Browse the repository at this point in the history
IsEnabled interface adapted to TreeLand platform

Log: Adapt to the Treeland platform
  • Loading branch information
mhduiy committed Oct 18, 2024
1 parent 68199d7 commit cbf410e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dquickwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ QQuickWindow *DQuickWindowAttached::window() const
bool DQuickWindowAttached::isEnabled() const
{
D_DC(DQuickWindowAttached);
return d->handle && DPlatformHandle::isEnabledDXcb(window());
return d->handle && (DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsDXcbPlatform)
|| DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsTreelandPlatform));
}

/*!
Expand Down

0 comments on commit cbf410e

Please sign in to comment.