-
Notifications
You must be signed in to change notification settings - Fork 54
Additional fixes for Qt6 support #122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: qt6-support
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ | |
|
|
||
| #include <QMetaType> | ||
| #include <QSharedPointer> | ||
| #include <QList> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this needed exactly? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both framework/keyboard still compile fine without it on Qt 6.8.1 for me without any related warnings with LLVM/Clang 19.1.6 so seems unneeded. |
||
|
|
||
| //! \ingroup common | ||
| namespace Maliit { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| include(CMakeFindDependencyMacro) | ||
|
|
||
| find_dependency(Qt5Core @Qt5Core_VERSION@) | ||
| find_dependency(Qt5Gui @Qt5Gui_VERSION@) | ||
| find_dependency(Qt5Quick @Qt5Quick_VERSION@) | ||
| find_dependency(Qt@QT_VERSION_MAJOR@Core @QT_MIN_VERSION@) | ||
| find_dependency(Qt@QT_VERSION_MAJOR@Gui @QT_MIN_VERSION@) | ||
| find_dependency(Qt@QT_VERSION_MAJOR@Quick @QT_MIN_VERSION@) | ||
|
|
||
| include("${CMAKE_CURRENT_LIST_DIR}/MaliitPluginsTargets.cmake") | ||
| include("${CMAKE_CURRENT_LIST_DIR}/MaliitPluginsTargets.cmake") |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| /* | ||
| /* | ||
| * Copyright (c) 2017 Jan Arne Petersen | ||
| * | ||
| * This library is free software; you can redistribute it and/or | ||
|
|
@@ -11,17 +11,16 @@ | |
| #ifndef QWAYLANDINPUTPANELSHELLINTEGRATION_H | ||
| #define QWAYLANDINPUTPANELSHELLINTEGRATION_H | ||
|
|
||
| #include <QtWaylandClient/private/qwaylandshellintegration_p.h> | ||
|
|
||
| #include "qwayland-input-method-unstable-v1.h" | ||
| #include <QtWaylandClient/private/qwayland-text-input-unstable-v1.h> | ||
| #include <QtWaylandClient/private/qwaylandclientshellapi_p.h> | ||
|
|
||
| QT_BEGIN_NAMESPACE | ||
|
|
||
| namespace QtWaylandClient | ||
| { | ||
| using namespace QtWaylandClient; | ||
|
|
||
| class QWaylandInputPanelShellIntegration: public QWaylandShellIntegration | ||
| { | ||
| class QWaylandInputPanelShellIntegration | ||
| : public QWaylandShellIntegrationTemplate< | ||
| QWaylandInputPanelShellIntegration>, | ||
| public QtWayland::zwp_text_input_manager_v1 { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain all of these changes in the input panel shell plugin? It's not clear to me why any of these changes are necessary. |
||
| public: | ||
| QWaylandInputPanelShellIntegration(); | ||
| ~QWaylandInputPanelShellIntegration() override; | ||
|
|
@@ -33,8 +32,4 @@ class QWaylandInputPanelShellIntegration: public QWaylandShellIntegration | |
| QScopedPointer<QtWayland::zwp_input_panel_v1> m_panel; | ||
| }; | ||
|
|
||
| } | ||
|
|
||
| QT_END_NAMESPACE | ||
|
|
||
| #endif //QWAYLANDINPUTPANELSHELLINTEGRATION_H | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file seem unnecessary? The define for the Qt6 case is not used anywhere, and the Qt5 one is only used here, where there won't be any newer minor releases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dropped this whole diff to
CMakeLists.txtto get this PR applying on top of #125 and everything builds on my end anyway.