-
Notifications
You must be signed in to change notification settings - Fork 334
Getting ready to Qt 6 (5/n). Do not assume qDBusRegisterMetaType return type
#584
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
Conversation
|
Friendly ping @laanwj :) |
`qDBusRegisterMetaType` returns: - `int` in Qt 5 - `QMetaType` in Qt 6
aa79a92 to
6cf4dc7
Compare
|
I have no idea whether this is correct. But as we don't use custom icons for notifications at all, I think we could get rid of the entire icon data, as well as FreedesktopIcon? so and everything that it depend on, including any This is less invasive than removing dbus support completely as in #575, but will still allow deleting this code. |
On my Ubuntu 22.04 with a custom testing patch: With the following diff --- a/src/qt/notificator.cpp
+++ b/src/qt/notificator.cpp
@@ -193,7 +193,6 @@ void Notificator::notifyDBus(Class cls, const QString &title, const QString &tex
{
tmpicon = icon;
}
- hints["icon_data"] = FreedesktopImage::toVariant(tmpicon.pixmap(FREEDESKTOP_NOTIFICATION_ICON_SIZE).toImage());
args.append(hints);
// Timeout (in msec)As an Ubuntu user, I'd like to keep the current functionality. |
|
Doesn't the latter icon convey the same information but integrate much better into your desktop theme? But I guess ideally you'd want notifications to have the icon of the program that emits them? Like, a bitcoin icon instead of the standard issue traffic sign? So yeah if that's what you want then keeping the custom icon functionality (and actually using it) would make sense. |
|
At some point we actually used to have different custom icons for notifications, even different ones for incoming/sent/etc transactions I don't know what happened to that. But as it's been removed my first reaction was to rip it out completely. Anyhow code review ACK 6cf4dc7 |
The same icon for message / warning / critical notification.
Probably. macOS does like that.
Yes. Let's keep it for now. |
|
Concept ACK |
w0xlt
left a comment
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.
tACK 6cf4dc7 on Ubuntu 21.10, Qt 5.15.2.
…e `qDBusRegisterMetaType` return type 6cf4dc7 qt: Do not assume `qDBusRegisterMetaType` return type (Hennadii Stepanov) Pull request description: `qDBusRegisterMetaType` returns: - [`int`](https://doc.qt.io/qt-5/qdbusargument.html#qDBusRegisterMetaType) in Qt 5 - [`QMetaType`](https://doc.qt.io/qt-6/qdbusargument.html#qDBusRegisterMetaType) in Qt 6 ACKs for top commit: laanwj: Anyhow code review ACK 6cf4dc7 w0xlt: tACK bitcoin-core/gui@6cf4dc7 on Ubuntu 21.10, Qt 5.15.2. Tree-SHA512: 17d43e191d31a6f927d19550c52471ed3b9222f492a23cee2e553f2c679cf37125e00637b00ea9f4ee3e37dfcf5278171be9a5e1e2e899592516291c7b5cd942


qDBusRegisterMetaTypereturns:intin Qt 5QMetaTypein Qt 6