Skip to content

feat: attempt to support Qt 6.6.2 - #231

Closed
felixonmars wants to merge 1 commit into
linuxdeepin:masterfrom
felixonmars:master
Closed

feat: attempt to support Qt 6.6.2#231
felixonmars wants to merge 1 commit into
linuxdeepin:masterfrom
felixonmars:master

Conversation

@felixonmars

Copy link
Copy Markdown
Member

QXcbWindow now inherits from QObject, this makes the plain parent() call ambigious and breaks VtableHook::callOriginalFun. I am not sure if the changes here are correct, but it at least compiles and dde-launchpad seems to working correctly.

Also accepts QT_XCB_PRIVATE_HEADERS for Qt 6.x builds.

-class Q_XCB_EXPORT QXcbWindow : public QXcbObject, public QXcbWindowEventListener, public QPlatformWindow
+class Q_XCB_EXPORT QXcbWindow : public QObject, public QXcbObject, public QXcbWindowEventListener, public QPlatformWindow
                               , public QNativeInterface::Private::QXcbWindow
 {
+    Q_OBJECT

QXcbWindow now inherits from QObject, this makes the plain parent() call
ambigious and breaks `VtableHook::callOriginalFun`. I am not sure if the
changes here are correct, but it at least compiles and dde-launchpad
seems to working correctly.

Also accepts QT_XCB_PRIVATE_HEADERS for Qt 6.x builds.

```
-class Q_XCB_EXPORT QXcbWindow : public QXcbObject, public QXcbWindowEventListener, public QPlatformWindow
+class Q_XCB_EXPORT QXcbWindow : public QObject, public QXcbObject, public QXcbWindowEventListener, public QPlatformWindow
                               , public QNativeInterface::Private::QXcbWindow
 {
+    Q_OBJECT
```
deepin-ci-robot added a commit to linuxdeepin/qt6platform-plugins that referenced this pull request Feb 15, 2024
Synchronize source files from linuxdeepin/qt5platform-plugins.

Source-pull-request: linuxdeepin/qt5platform-plugins#231
@BLumia
BLumia requested a review from kegechen February 16, 2024 03:41
@deepin-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: felixonmars, kegechen

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment thread xcb/windoweventhook.cpp
}

VtableHook::callOriginalFun(window, &QXcbWindow::handleFocusInEvent, event);
window->QXcbWindow::handleFocusInEvent(event);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不行,会形成死循环。如果这里有问题,可以看看 dtkcore 里的 DVtableHook 的单测能不能跑得通

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看起来确实会,但是测试居然没有。。有点奇怪

zccrs pushed a commit that referenced this pull request Feb 20, 2024
* feat: attempt to support Qt 6.6.2

QXcbWindow now inherits from QObject, this makes the plain parent() call
ambigious and breaks `VtableHook::callOriginalFun`. I am not sure if the
changes here are correct, but it at least compiles and dde-launchpad
seems to working correctly.

Also accepts QT_XCB_PRIVATE_HEADERS for Qt 6.x builds.

```
-class Q_XCB_EXPORT QXcbWindow : public QXcbObject, public QXcbWindowEventListener, public QPlatformWindow
+class Q_XCB_EXPORT QXcbWindow : public QObject, public QXcbObject, public QXcbWindowEventListener, public QPlatformWindow
                               , public QNativeInterface::Private::QXcbWindow
 {
+    Q_OBJECT
```

* another clean fix on qt 6.6.2

* xcb: improve qt6 private header inclusion handling

---------

Co-authored-by: Felix Yan <felixonmars@archlinux.org>
@deepin-bot

deepin-bot Bot commented Mar 11, 2024

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.6.25
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #234

@deepin-bot

deepin-bot Bot commented Mar 27, 2024

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.6.26
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #235

@deepin-bot

deepin-bot Bot commented Apr 23, 2024

Copy link
Copy Markdown
Contributor

TAG Bot

New tag: 5.6.27
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #238

@felixonmars

Copy link
Copy Markdown
Member Author

Superseded by #232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants