Fix white text in tool tips and dock widget decorations

This was a regression in the custom styling. We no longer set
the panel property on the mainwindow but rely on qobject_cast
to style custom mainwindows.

Reviewed-by: thorbjorn
This commit is contained in:
Jens Bache-Wiig
2010-03-22 13:20:31 +01:00
parent 5e68c2afb8
commit 3ecfc2f343
2 changed files with 5 additions and 1 deletions

View File

@@ -36,6 +36,8 @@
#include <utils/qtcassert.h>
#include <utils/stylehelper.h>
#include <utils/fancymainwindow.h>
#include <QtGui/QApplication>
#include <QtGui/QComboBox>
#include <QtGui/QDialog>
@@ -85,6 +87,9 @@ bool panelWidget(const QWidget *widget)
if (qobject_cast<const QDialog *>(widget->window()))
return false;
if (qobject_cast<const Utils::FancyMainWindow *>(widget))
return true;
const QWidget *p = widget;
while (p) {
if (qobject_cast<const QToolBar *>(p) ||