mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Simplify ifdefs
This commit is contained in:
parent
a539f24a0a
commit
096fb0486f
@ -2,33 +2,18 @@
|
|||||||
#include "headless_integration.h"
|
#include "headless_integration.h"
|
||||||
#include "headless_backingstore.h"
|
#include "headless_backingstore.h"
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
|
|
||||||
#include <QtFontDatabaseSupport/private/qcoretextfontdatabase_p.h>
|
#include <QtFontDatabaseSupport/private/qcoretextfontdatabase_p.h>
|
||||||
class QCoreTextFontEngine;
|
class QCoreTextFontEngine;
|
||||||
#else
|
|
||||||
#include <QtPlatformSupport/private/qcoretextfontdatabase_p.h>
|
|
||||||
#endif
|
|
||||||
#include <qpa/qplatformservices.h>
|
#include <qpa/qplatformservices.h>
|
||||||
#include <QtCore/private/qeventdispatcher_unix_p.h>
|
#include <QtCore/private/qeventdispatcher_unix_p.h>
|
||||||
#else
|
#else
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 4, 1))
|
|
||||||
#include "fontconfig_database.h"
|
#include "fontconfig_database.h"
|
||||||
#else
|
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
|
|
||||||
#include <QtFontDatabaseSupport/private/qfontconfigdatabase_p.h>
|
|
||||||
#else
|
|
||||||
#include <QtPlatformSupport/private/qfontconfigdatabase_p.h>
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
#ifndef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
|
|
||||||
#include <QtEventDispatcherSupport/private/qgenericunixeventdispatcher_p.h>
|
|
||||||
#else
|
|
||||||
#include <QtPlatformSupport/private/qgenericunixeventdispatcher_p.h>
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#include <QtCore/private/qeventdispatcher_win_p.h>
|
#include <QtCore/private/qeventdispatcher_win_p.h>
|
||||||
#endif
|
#else
|
||||||
|
#include <QtEventDispatcherSupport/private/qgenericunixeventdispatcher_p.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QtGui/private/qpixmap_raster_p.h>
|
#include <QtGui/private/qpixmap_raster_p.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user