-
Notifications
You must be signed in to change notification settings - Fork 650
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
Update to qt6 #2782
Update to qt6 #2782
Conversation
5a9eaa8
to
8344045
Compare
8344045
to
e5c2138
Compare
include/multipass/standard_paths.h
Outdated
@@ -45,7 +45,7 @@ class StandardPaths : public Singleton<StandardPaths> | |||
static constexpr auto PicturesLocation = StandardLocation::PicturesLocation; | |||
static constexpr auto TempLocation = StandardLocation::TempLocation; | |||
static constexpr auto HomeLocation = StandardLocation::HomeLocation; | |||
static constexpr auto DataLocation = StandardLocation::DataLocation; | |||
static constexpr auto DataLocation = StandardLocation::AppDataLocation; |
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 understand this saves us from changing client code everywhere, but I think we should stick to what we're wrapping. These wrappers exist only for the purpose of testing and I believe we should keep them as thin and faithful to the original as possible. The moment we start mapping things differently or adding functionality, they themselves would need to be tested.
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 see your point. Now that I look closer, DataLocation
is not used anywhere in our code and the QStandardPaths::StandardLocation::DataLocation
has been removed in favor of QStandardPaths::StandardLocation::AppDataLocation
and we already have a AppDataLocation
constant that wraps that value. So I guess the DataLocation
can be removed entirely, right?
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.
Oh ok, yep I think it should be removed if it is not available in the wrappee anymore.
f42f175
to
e566d56
Compare
Codecov Report
@@ Coverage Diff @@
## main #2782 +/- ##
==========================================
- Coverage 88.55% 88.49% -0.06%
==========================================
Files 239 239
Lines 12158 12111 -47
==========================================
- Hits 10766 10718 -48
- Misses 1392 1393 +1
|
21a93a0
to
f5b5882
Compare
d619899
to
c67e2f0
Compare
e566d56
to
f84579f
Compare
c67e2f0
to
f6ac74d
Compare
b7a5696
to
d66a3f4
Compare
f6ac74d
to
db7ba86
Compare
41067f2
to
0def63d
Compare
db7ba86
to
b9465e0
Compare
b9465e0
to
92d889f
Compare
0def63d
to
464456b
Compare
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.
Hey @andrei-toterman!
Thanks for this! Unfortunately, the tray icon GUI does not work for me:
$ multipass.gui
Warning: Ignoring WAYLAND_DISPLAY on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Aborted (core dumped)
464456b
to
579abcc
Compare
579abcc
to
56755cc
Compare
56755cc
to
2997534
Compare
it was needed to set the codec to UTF-8 but that became the default in Qt6
in Qt6 overloading QProcess::setupChildProcess has been replaced with passing a function to setChildProcessModifier
in Qt6, that attribute has been removed and redirects are followed by default
in Qt6, QFuture operator== has been removed, so we can't directly compare if two QFutures are the same. now, when a QFutureWatcher is created, we create a UUID to identify it in a map
2997534
to
4b92337
Compare
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.
This fails building on the private side due to the private side change in the workflow.
I'm gonna bors
this to get the commit message, but it will fail, so I'll just merge manually.
bors merge |
2782: Update to qt6 r=townsend2010 a=andrei-toterman Fixes #2627 Co-authored-by: Andrei Toterman <[email protected]>
Timed out. |
Fixes #2627