Commit 93e67cca authored by David Hurka's avatar David Hurka 🐬 Committed by Albert Astals Cid
Browse files

Port away from QDesktopWidget

This ports Shell from QDesktopWidget to QScreen (trivial),
and removes unused QDesktopWidget includes (super-trivial).
parent a969bb91
Pipeline #29819 passed with stage
in 17 minutes and 39 seconds
......@@ -15,11 +15,11 @@
#include "settings_core.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QIODevice>
#include <QImage>
#include <QRect>
#include <QScreen>
#include <QWidget>
#include <QWindow>
using namespace Okular;
......
......@@ -40,12 +40,12 @@
#include <KXMLGUIFactory>
#include <QApplication>
#include <QDBusConnection>
#include <QDesktopWidget>
#include <QDragMoveEvent>
#include <QFileDialog>
#include <QMenuBar>
#include <QMimeDatabase>
#include <QMimeType>
#include <QScreen>
#include <QTabBar>
#include <QTabWidget>
#include <QTimer>
......@@ -545,7 +545,7 @@ void Shell::slotShowMenubar()
QSize Shell::sizeHint() const
{
return QApplication::desktop()->availableGeometry(this).size() * 0.75;
return QApplication::primaryScreen()->availableSize() * 0.75;
}
bool Shell::queryClose()
......
......@@ -11,7 +11,6 @@
// qt/kde includes
#include <QApplication>
#include <QDesktopWidget>
#include <QFile>
#include <QFileDialog>
#include <QFormLayout>
......
Markdown is supported
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