From 0fa27c938ec80aeda984fc96892a641e7982021e Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 13 Sep 2018 18:29:47 +0200 Subject: Fix deprecation in HoverWindow Hmm, very old code, have to check if it's still used... --- hoverwindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hoverwindow.cpp') diff --git a/hoverwindow.cpp b/hoverwindow.cpp index db1be8a..101265c 100644 --- a/hoverwindow.cpp +++ b/hoverwindow.cpp @@ -5,9 +5,9 @@ 2 of the License, or (at your option) any later version. */ -#include -#include -#include +#include +#include +#include #include #include #include @@ -18,8 +18,9 @@ #include #include #include -#include +#include #include +#include #include "hoverwindow.h" #include "smglobals.h" @@ -31,8 +32,7 @@ HoverWindow::HoverWindow(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f setWindowOpacity(opacity / 10.0); setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum); setStyleSheet("QLabel { background-color: #D6A583; color: black; border-width: 2px; border-style: solid; padding: 4px; }"); - QDesktopWidget *desktop = qApp->desktop(); - mDesktopHeight = desktop->availableGeometry().height(); + mDesktopHeight = qApp->screens().at(0)->availableGeometry().height(); QSize curSize = SmGlobals::instance()->cursorSize(); setHoverOffset(QPoint(curSize.width() + 30, 0)); mMainLayout = new QHBoxLayout; -- cgit v1.2.3-70-g09d2