From 69c45fb3cf722a6589efc99bf1fe2c151a3ea491 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 12 Jun 2018 18:59:56 +0000 Subject: replaced deprecated QDesktopWidget git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8034 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/notifier/popupwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/General/notifier/popupwidget.cpp') diff --git a/src/plugins/General/notifier/popupwidget.cpp b/src/plugins/General/notifier/popupwidget.cpp index 7837aff65..1cc01f8ae 100644 --- a/src/plugins/General/notifier/popupwidget.cpp +++ b/src/plugins/General/notifier/popupwidget.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2015 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include #include @@ -126,7 +126,7 @@ void PopupWidget::showVolume(int v) void PopupWidget::updatePosition() { //calculate widget position - QRect desktopRect = QApplication::desktop()->availableGeometry(); + QRect desktopRect = QGuiApplication::primaryScreen()->availableGeometry(); int x = desktopRect.x() + 5, y = desktopRect.y() + 5; if (m_pos == LEFT || m_pos == RIGHT || m_pos == CENTER) y = desktopRect.y() + desktopRect.height()/2 - height()/2 + 5; -- cgit v1.2.3-13-gbd6f