Skip to content

Conversation

@letsfindaway
Copy link
Contributor

This PR enables compilation of Imagewriter with Qt6.

  • use QList instead of QLinkedList
  • use QRegularExpression instead of QRegExp
  • use QScreen instead of QDesktopWidget

Others:

  • remove #include <sys/sysctl.h> (see also PR remove include <sys/sysctl.h> #28)
  • fix: leave loop in Platform::removeDeviceFromList when item found as erase invalidates iterator

Note: these changes break compatibility with Qt4

Note: in End of Qt 5 support the Imagewriter is listed as "unmaintained". I hope this PR will allow us to continue including Imagewriter in TW and Leap 16.

- use QList instead of QLinkedList
- use QRegularExpression instead of QRegExp
- use QScreen instead of QDesktopWidget

Others:
- remove #include <sys/sysctl.h> (see also PR openSUSE#28)
- fix: leave loop in Platform::removeDeviceFromList
  when item found as erase invalidates iterator

Note: these changes break compatibility with Qt4
Signed-off-by: letsfindaway <me@letsfindaway.de>
@Conan-Kudo
Copy link
Member

This project needs to be ported from qmake to cmake too, as qmake is deprecated now.

@gruenich
Copy link

@Conan-Kudo I created issue #37 for this. I can have a look and will propose a pull request.

Back to topic: This pull request fixes the compilation on Tumbleweed with Qt 6 for me.

This was referenced May 30, 2025
@mbarringer mbarringer merged commit 980b433 into openSUSE:master May 31, 2025
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