chore: add window platform interface#280
Conversation
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: FeiWang1119 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
This comment was marked as spam.
This comment was marked as spam.
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
add window platform interface Log: as title.
Synchronize source files from linuxdeepin/dtkgui. Source-pull-request: linuxdeepin/dtkgui#280
|
TAG Bot New tag: 5.7.4 |
| #endif | ||
| } | ||
|
|
||
| if (g_platformThemeMap.isEmpty()) { |
There was a problem hiding this comment.
getPlatformWindowInterface 查找为null才fallback到默认的, 或者声明一个变量,最后判断变量是否为null来fallback到默认的,
| virtual bool autoInputMaskByClipPath() const; | ||
| virtual void setAutoInputMaskByClipPath(bool autoInputMaskByClipPath); | ||
|
|
||
| virtual WId realWindowId() const; |
|
|
||
| class LIBDTKCORESHARED_EXPORT DPlatformWindowInterfaceFactory { | ||
| public: | ||
| using HelperCreator = DPlatformWindowInterface * (*)(QWindow *, DPlatformHandle*); |
| void enableDXcb(); | ||
| void enableDXcb(bool redirectContent); | ||
| bool isEnabledDXcb(); | ||
| bool eventFilterForXcb(QObject *obj, QEvent *event); |
There was a problem hiding this comment.
这个改名为eventFilter,跟之前的DPlatformHandler一样,将DPlatformHandler::eventFilter移除掉,
|
|
||
| public: | ||
| bool eventFilter(QObject *watched, QEvent *event) override { | ||
| bool eventFilter(QObject *watched, QEvent *event) { |
| DTreeLandPlatformWindowInterface::DTreeLandPlatformWindowInterface(QObject *parent, QWindow *window) | ||
| : QObject(parent) | ||
| , m_window(window) | ||
| DGUI_BEGIN_NAMESPACE |
|
|
||
| DGUI_BEGIN_NAMESPACE | ||
|
|
||
| class DTreeLandPlatformWindowInterfacePrivate : public DPlatformWindowInterfacePrivate |
There was a problem hiding this comment.
这个是不是可以直接写在DTreeLandPlatformWindowInterface类里,本来也不需要导出,
|
TAG Bot New tag: 5.7.5 |
add window platform interface
Log: as title.