From 6c8e47deebc1529039e9f1538ee720bf33bb4585 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 8 Jun 2018 15:23:07 +0200 Subject: [PATCH] Debugger: Remove Qt 4 specific code path in ConsoleView Qt 5 does not come with plastique or cleanlook styles. Change-Id: I716303b3344504f8f19c31b29bd7530ccc0c2e39 Reviewed-by: hjk --- src/plugins/debugger/console/consoleview.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/plugins/debugger/console/consoleview.cpp b/src/plugins/debugger/console/consoleview.cpp index d9352a2ef63..3370d752f89 100644 --- a/src/plugins/debugger/console/consoleview.cpp +++ b/src/plugins/debugger/console/consoleview.cpp @@ -107,13 +107,6 @@ ConsoleView::ConsoleView(ConsoleItemModel *model, QWidget *parent) : // Sometimes we get the standard windows 95 style as a fallback if (QStyleFactory::keys().contains(QLatin1String("Fusion"))) { baseName = QLatin1String("fusion"); // Qt5 - } else { // Qt4 - // e.g. if we are running on a KDE4 desktop - QByteArray desktopEnvironment = qgetenv("DESKTOP_SESSION"); - if (desktopEnvironment == "kde") - baseName = QLatin1String("plastique"); - else - baseName = QLatin1String("cleanlooks"); } } ConsoleViewStyle *style = new ConsoleViewStyle(baseName);