Commit 9be51b95 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port deprecated method

parent dac8a6b5
Pipeline #188870 passed with stage
in 45 seconds
......@@ -19,11 +19,11 @@
#include <QAbstractEventDispatcher>
#include <QApplication>
#include <QDesktopWidget>
#include <QFile>
#include <QFileInfo>
#include <QIcon>
#include <QMenu>
#include <QScreen>
#include <QStandardPaths>
#include <KConfig>
......@@ -78,9 +78,9 @@ void KMouseTool::init_vars()
// find the user's autostart directory
autostartdirname = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QStringLiteral("/autostart-scripts/");
QDesktopWidget *d = QApplication::desktop();
int w = d->width();
int h = d->height();
auto screenSize = screen()->availableGeometry();
int w = screenSize.width();
int h = screenSize.height();
MTStroke::setUpperLeft(0, 0);
MTStroke::setUpperRight(w - 1, 0);
MTStroke::setLowerLeft(0, h - 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment