[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [knotifications] src: Use explicit flag constructor instead of nullptr/0
From: Friedrich W. H. Kossebau <null () kde ! org>
Date: 2017-06-01 0:05:46
Message-ID: E1dGDcY-0003n7-6n () code ! kde ! org
[Download RAW message or body]
Git commit 0a03db40b18b2297fd577ef71e901c450aa556dd by Friedrich W. H. Kossebau.
Committed on 01/06/2017 at 00:04.
Pushed by kossebau into branch 'master'.
Use explicit flag constructor instead of nullptr/0
M +1 -1 src/kpassivepopup.cpp
M +1 -1 src/kpassivepopup.h
https://commits.kde.org/knotifications/0a03db40b18b2297fd577ef71e901c450aa556dd
diff --git a/src/kpassivepopup.cpp b/src/kpassivepopup.cpp
index 37badfa..120caa3 100644
--- a/src/kpassivepopup.cpp
+++ b/src/kpassivepopup.cpp
@@ -457,7 +457,7 @@ void KPassivePopup::positionSelf()
#if HAVE_X11
if (QX11Info::isPlatformX11()) {
NETWinInfo ni(QX11Info::connection(), d->window, QX11Info::appRootWindow(),
- NET::WMIconGeometry | NET::WMState, 0);
+ NET::WMIconGeometry | NET::WMState, NET::Properties2());
// Try to put the popup by the taskbar entry
if (!(ni.state() & NET::SkipTaskbar)) {
diff --git a/src/kpassivepopup.h b/src/kpassivepopup.h
index 05e5104..b10672a 100644
--- a/src/kpassivepopup.h
+++ b/src/kpassivepopup.h
@@ -102,7 +102,7 @@ public:
/**
* Creates a popup for the specified widget.
*/
- explicit KPassivePopup(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr);
+ explicit KPassivePopup(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
/**
* Creates a popup for the specified window.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic