forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user