-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
migrated to qt6 #429
migrated to qt6 #429
Conversation
CMakeLists.txt
Outdated
Qt6 | ||
COMPONENTS ${QT_MODULES} LinguistTools | ||
REQUIRED) | ||
if(FLATPAK) | ||
find_package( | ||
Qt5 5.15 | ||
Qt6 |
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.
we have to find a way to support both
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.
Do we? What platforms/targets don't have Qt6 on the menu already and/or won't soon? It seems to be a project like this would benefit from staying on top of the toolkit/library game and any effort back-porting to older versions should be on an as-demanded basis and provided by the people that really want to see it happen for whatever reason. The main development effort should be on the latest stable releases when possible and this seems like a great opportunity to hit that target.
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.
Supporting both would mean lots of #ifdefs, a nightmare...
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 rebased the branch, maybe we can go just with Qt6
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.
@exactly-one-kas do you have anything against it?
e6d816f
to
ad2a208
Compare
@@ -13,8 +13,6 @@ | |||
#include <QMessageBox> | |||
|
|||
int main(int argc, char *argv[]) { | |||
Application::setAttribute(Qt::AA_EnableHighDpiScaling); | |||
Application::setAttribute(Qt::AA_UseHighDpiPixmaps); | |||
Application app(argc, argv, true); |
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.
Why is this anymore required?
@@ -505,7 +506,7 @@ class LfsPanel : public QWidget { | |||
watcher->deleteLater(); | |||
}); | |||
|
|||
watcher->setFuture(QtConcurrent::run(repo, &git::Repository::lfsTracked)); |
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 why you changed it, but I don't understand why it worked also the other way?
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.
Ok it does not compile the other way around, but the function definition looks same in Qt5 and Qt6
src/dialogs/DeleteBranchDialog.cpp
Outdated
@@ -61,8 +61,9 @@ DeleteBranchDialog::DeleteBranchDialog(const git::Branch &branch, | |||
|
|||
entry->setBusy(true); | |||
QStringList refspecs(QString(":%1").arg(upstreamName)); | |||
git::Result (git::Remote::*push)(git::Remote::Callbacks*, const QStringList&) = &git::Remote::push; |
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.
what is the benefit of this function pointer?
@exactly-one-kas do you think we still need win32? |
@exactly-one-kas Can you test and build this branch on Arch Linux? |
Mac: change CustomTheme_mac.mm use float Win: D:/a/Gittyup/Gittyup/src/index/indexer.cpp:61:3: error: no matching function for call to 'CreateDirectoryW' |
13cb439
to
706f288
Compare
You mean #760? |
This reverts commit 918df65.
Yes, but is there already an issue for the "Use Ours", "Use Theirs" button color problem? This happens in Gittyup 1.4.0 on MacOS for me. |
@exactly-one-kas If you have some time can you please check out the Windows theming problem this branch has, i am unable to build openssl on windows.. |
Reason: Because with 6.8 there are fetch errors with Qt install INFO : aqtinstall(aqt) v3.1.21 on Python 3.9.16 [CPython GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] INFO : Downloading qtwebengine... INFO : Downloading qtdeclarative... INFO : Downloading qtbase... INFO : Downloading qtsvg... INFO : Redirected: qt-mirror.dannhauer.de INFO : Redirected: qt-mirror.dannhauer.de INFO : Redirected: qt-mirror.dannhauer.de INFO : Redirected: qt-mirror.dannhauer.de INFO : Finished installation of qtsvg-Linux-RHEL_8_6-GCC-Linux-RHEL_8_6-X86_64.7z in 0.66724220 ^CWARNING : Caught KeyboardInterrupt, terminating installer workers ERROR : Installer halted by keyboard interrupt. muc93k068:/home/mmarmsol/Documents/Temp/Qt $ python -m aqt install-qt linux desktop 6.7.0 gcc_64 --autodesktop --outputdir . --modules qtwebengine INFO : aqtinstall(aqt) v3.1.21 on Python 3.9.16 [CPython GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] ERROR : The packages ['qt_base', 'qtwebengine'] were not found while parsing XML of package information! ==============================Suggested follow-up:============================== * Please use 'aqt list-qt linux desktop --arch 6.7.0' to show architectures available. * Please use 'aqt list-qt linux desktop --modules 6.7.0 <arch>' to show modules available.
Reason: it is not allowed to overwrite
f85d517
to
7eb92e8
Compare
I have just migrated a fork of Gittyup to Qt6.
It compiles (without deprecation warnings) and seems to run, but is still mostly untested (on Manjaro-KDE-Linux only).