From 2d31134ee083faa97a4bc313c5992720d3f5cedd Mon Sep 17 00:00:00 2001 From: EmmanuelMess Date: Fri, 10 Sep 2021 16:01:29 -0300 Subject: [PATCH] Fix narrowing conversions in osd dbus --- src/osd/osddbus.cpp | 2 +- src/osd/osdpretty.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/osddbus.cpp b/src/osd/osddbus.cpp index 0605c0696..3a4923ba3 100644 --- a/src/osd/osddbus.cpp +++ b/src/osd/osddbus.cpp @@ -164,7 +164,7 @@ void OSDDBus::ShowMessageNative(const QString &summary, const QString &message, hints["transient"] = QVariant(true); - int id = 0; + quint64 id = 0; if (last_notification_time_.secsTo(QDateTime::currentDateTime()) * 1000 < timeout_msec()) { // Reuse the existing popup if it's still open. The reason we don't always // reuse the popup is because the notification daemon on KDE4 won't re-show the bubble if it's already gone to the tray. See issue #118 diff --git a/src/osd/osdpretty.h b/src/osd/osdpretty.h index d4160553c..3eea02919 100644 --- a/src/osd/osdpretty.h +++ b/src/osd/osdpretty.h @@ -145,7 +145,7 @@ class OSDPretty : public QWidget { // Settings loaded from QSettings QColor foreground_color_; QColor background_color_; - float background_opacity_; + qreal background_opacity_; QString popup_screen_name_; QPoint popup_pos_; QScreen *popup_screen_;