mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Linux: Fix building with Qt 6.9
This commit is contained in:
parent
1973cdb7d6
commit
30b66dc452
@ -27,7 +27,13 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#ifndef __APPLE__
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
|
||||
#include <QtGui/private/qgenericunixservices_p.h>
|
||||
class GenericUnixServices : public QGenericUnixServices {
|
||||
#else
|
||||
#include <QtGui/private/qdesktopunixservices_p.h>
|
||||
class GenericUnixServices : public QDesktopUnixServices {
|
||||
#endif
|
||||
/* We must return desktop environment as UNKNOWN otherwise other parts of
|
||||
* Qt will try to query the nativeInterface() without checking if it exists
|
||||
* leading to a segfault. For example, defaultHintStyleFromMatch() queries
|
||||
|
@ -3,7 +3,6 @@
|
||||
#include <qpa/qplatformintegration.h>
|
||||
#include <qpa/qplatformscreen.h>
|
||||
#include <qpa/qplatformservices.h>
|
||||
#include <QtGui/private/qgenericunixservices_p.h>
|
||||
#include <QScopedPointer>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
Loading…
x
Reference in New Issue
Block a user