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 <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2018-06-08 15:23:07 +02:00
parent 14d585f105
commit 6c8e47deeb

View File

@@ -107,13 +107,6 @@ ConsoleView::ConsoleView(ConsoleItemModel *model, QWidget *parent) :
// Sometimes we get the standard windows 95 style as a fallback // Sometimes we get the standard windows 95 style as a fallback
if (QStyleFactory::keys().contains(QLatin1String("Fusion"))) { if (QStyleFactory::keys().contains(QLatin1String("Fusion"))) {
baseName = QLatin1String("fusion"); // Qt5 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); ConsoleViewStyle *style = new ConsoleViewStyle(baseName);