QGtkStyle: remove obsolete themeName != "Qt" checks
Change-Id: Ibb6d952f6abc398ac5deb94d3bdfd8560777aa44 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
This commit is contained in:
parent
f8ff5263ac
commit
6c879b9b7c
@ -529,18 +529,6 @@ void QGtkStylePrivate::initGtkWidgets() const
|
||||
return;
|
||||
}
|
||||
|
||||
static QString themeName;
|
||||
if (!gtkWidgetMap()->contains("GtkWindow") && themeName.isEmpty()) {
|
||||
themeName = getThemeName();
|
||||
|
||||
if (themeName == QLS("Qt") || themeName == QLS("Qt4")) {
|
||||
// Due to namespace conflicts with Qt3 and obvious recursion with Qt4,
|
||||
// we cannot support the GTK_Qt Gtk engine
|
||||
qWarning("QGtkStyle cannot be used together with the GTK_Qt engine.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (QGtkStylePrivate::gtk_init) {
|
||||
#ifndef Q_OS_MAC
|
||||
// Gtk will set the Qt error handler so we have to reset it afterwards
|
||||
|
Loading…
Reference in New Issue
Block a user