[qxt] Compil fix for qt version > 5.6

This commit is contained in:
Ali Allaoui 2019-01-18 16:36:52 +01:00
parent f22e4acac6
commit 85558d242c
1 changed files with 5 additions and 2 deletions

View File

@ -29,8 +29,11 @@
** <http://libqxt.org> <foundation@libqxt.org>
*****************************************************************************/
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#if QT_VERSION < QT_VERSION_CHECK(5,0,0) || QT_VERSION > QT_VERSION_CHECK(5,6,0)
# include <QX11Info>
#if QT_VERSION > QT_VERSION_CHECK(5,6,0)
# include <xcb/xcb.h>
#endif
#else
# include <QApplication>
# include <qpa/qplatformnativeinterface.h>
@ -92,7 +95,7 @@ class QxtX11Data {
public:
QxtX11Data()
{
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
#if QT_VERSION < QT_VERSION_CHECK(5,0,0) || QT_VERSION > QT_VERSION_CHECK(5,6,0)
m_display = QX11Info::display();
#else
QPlatformNativeInterface *native = qApp->platformNativeInterface();