Fix deprecated function call issues with Qt 5.13
Update to mtxclient 0.3.0
This commit is contained in:
parent
175737c28b
commit
c0a010acbb
18 changed files with 97 additions and 34 deletions
|
|
@ -17,7 +17,9 @@
|
|||
|
||||
#include <QApplication>
|
||||
#include <QDesktopWidget>
|
||||
#include <QGuiApplication>
|
||||
#include <QPainter>
|
||||
#include <QScreen>
|
||||
|
||||
#include "dialogs/ImageOverlay.h"
|
||||
|
||||
|
|
@ -39,7 +41,8 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent)
|
|||
setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
setWindowState(Qt::WindowFullScreen);
|
||||
|
||||
screen_ = QApplication::desktop()->availableGeometry();
|
||||
// Deprecated in 5.13: screen_ = QApplication::desktop()->availableGeometry();
|
||||
screen_ = QGuiApplication::primaryScreen()->availableGeometry();
|
||||
|
||||
move(QApplication::desktop()->mapToGlobal(screen_.topLeft()));
|
||||
resize(screen_.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue