-
Notifications
You must be signed in to change notification settings - Fork 33
QT6 and KF6 fixes #227
QT6 and KF6 fixes #227
Conversation
f8695ce to
3c8efa6
Compare
| QPixmap::fromImage(notificationInfo->icon())); | ||
| notification->setDefaultAction("View"); | ||
| connect(notification, &KNotification::defaultActivated, | ||
| notification->addDefaultAction("View"); |
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 gives a warning since it's nodiscard, is there a way I can use the result of this method instead of &KNotification::defaultActivated? I don't know how to cpp 😛
|
|
||
| if(KF6Notifications_FOUND) | ||
| target_link_libraries(discord-screenaudio KF6::Notifications) | ||
| install(FILES assets/discord-screenaudio.notifyrc DESTINATION ${CMAKE_INSTALL_PREFIX}/share/knotifications6) |
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.
Should we use KDEInstallDirs?
|
Hey, thanks a lot. I have actually already started working on KF6 support in the kf6 branch, but I didn't have the time to finish working on that. I wasn't yet able to make my branch work on all combinations of Qt5/Qt6 and X11/Wayland. So when I find the time, I complete that and merge in potential changes you made. |
|
This has been added to the master branch a while ago. |
|
Yep, thanks! The nixpkgs package is building fine with the new KF6 packages 🙏 |
Just fixing some of the issues I saw when trying to use the new kde framework packages when building. My code isn't the best nor I do know if this breaks QT5 support, but I'm putting this here in case you'd actually be interested in pursuing this.