[poppler] qt6/demos

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 19 15:43:45 UTC 2020


 qt6/demos/pageview.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 613c9ce5f503cdbd5f6a3daccbc26f3e5a162f59
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Oct 19 17:38:16 2020 +0200

    qt6: fix compile with newer qt6 code

diff --git a/qt6/demos/pageview.cpp b/qt6/demos/pageview.cpp
index 1287b2c8..d55b8193 100644
--- a/qt6/demos/pageview.cpp
+++ b/qt6/demos/pageview.cpp
@@ -28,7 +28,7 @@
 #include <QtGui/QPixmap>
 #include <QDebug>
 
-PageView::PageView(QWidget *parent) : QScrollArea(parent), m_zoom(1.0), m_rotation(0), m_dpiX(QApplication::desktop()->physicalDpiX()), m_dpiY(QApplication::desktop()->physicalDpiY())
+PageView::PageView(QWidget *parent) : QScrollArea(parent), m_zoom(1.0), m_rotation(0), m_dpiX(physicalDpiX()), m_dpiY(physicalDpiY())
 {
     m_imageLabel = new QLabel(this);
     m_imageLabel->resize(0, 0);


More information about the poppler mailing list