From 2a7e98b20e3ba8fe8f9d3882e6efd427339fb42e Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Fri, 12 Dec 2014 12:01:56 +0100 Subject: [PATCH] use QX11Info::isPlatformX11 --- kstyle/breezehelper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kstyle/breezehelper.cpp b/kstyle/breezehelper.cpp index cfd4b7f5..63b5d2c5 100644 --- a/kstyle/breezehelper.cpp +++ b/kstyle/breezehelper.cpp @@ -1342,8 +1342,7 @@ namespace Breeze { #if BREEZE_HAVE_X11 #if QT_VERSION >= 0x050000 - static bool isX11 = QApplication::platformName() == QStringLiteral("xcb"); - return isX11; + return QX11Info::isPlatformX11(); #else return true; #endif