#include <QByteArray>
#include <QBitmap>
#include <QDateTime>
-#if QT_VERSION < 0x060000
-#include <QDesktopWidget>
-#endif
#include <QEvent>
#include <QFileOpenEvent>
#include <QFileInfo>
// Negative displacements must be interpreted as distances
// from the right or bottom screen borders.
if (sx == '-' || sy == '-') {
-#if QT_VERSION < 0x060000
- QRect rec = QApplication::desktop()->screenGeometry();
-#else
QRect rec = QGuiApplication::primaryScreen()->geometry();
-#endif
if (sx == '-')
x += rec.width() - w - framewidth;
if (sy == '-')
#include <QToolTip>
#include <QToolBar>
#include <QApplication>
-#if QT_VERSION < 0x060000
-#include <QDesktopWidget>
-#endif
#include <QPainter>
+#include <QScreen>
#include <QStyle>
#include <QStyleOptionFrame>
#include <QMouseEvent>
#include <QVBoxLayout>
-#if QT_VERSION >= 0x060000
#include <QWindow>
-#endif
namespace lyx {
namespace frontend {
voffset -= parheight;
}
-#if QT_VERSION < 0x060000
- QRect const screen = qApp->desktop()->availableGeometry(this);
-#else
QRect const screen = window()->windowHandle()->screen()->availableGeometry();
-#endif
QPoint const gpos = parentWidget()->mapToGlobal(
parentWidget()->geometry().bottomLeft());