summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qs60style.cpp
diff options
context:
space:
mode:
authorSami Merilä <sami.merila@nokia.com>2009-05-25 07:28:56 (GMT)
committerSami Merilä <sami.merila@nokia.com>2009-05-25 07:28:56 (GMT)
commit377a0ece82b91e00e4fc8935a73dc18cd218abf4 (patch)
treea139cd3df1158aad49390abd5fb2cdcb1f328dc6 /src/gui/styles/qs60style.cpp
parentfc8673c8a0e3ef11aa1eb8c932e0fcd843c11465 (diff)
downloadQt-377a0ece82b91e00e4fc8935a73dc18cd218abf4.zip
Qt-377a0ece82b91e00e4fc8935a73dc18cd218abf4.tar.gz
Qt-377a0ece82b91e00e4fc8935a73dc18cd218abf4.tar.bz2
S60Style: Change IsSkinnableDialog method name to drawsOwnThemeBackground.
Diffstat (limited to 'src/gui/styles/qs60style.cpp')
-rw-r--r--src/gui/styles/qs60style.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/styles/qs60style.cpp b/src/gui/styles/qs60style.cpp
index 2af80f0..f690f1d 100644
--- a/src/gui/styles/qs60style.cpp
+++ b/src/gui/styles/qs60style.cpp
@@ -320,7 +320,7 @@ QColor QS60StylePrivate::lighterColor(const QColor &baseColor)
return result;
}
-bool QS60StylePrivate::isSkinnableDialog(const QWidget *widget)
+bool QS60StylePrivate::drawsOwnThemeBackground(const QWidget *widget)
{
return (qobject_cast<const QMessageBox *> (widget) ||
qobject_cast<const QErrorMessage *> (widget));
@@ -2014,7 +2014,7 @@ void QS60Style::drawPrimitive(PrimitiveElement element, const QStyleOption *opti
}
break;
case PE_Widget:
- if (QS60StylePrivate::isSkinnableDialog(widget) ||
+ if (QS60StylePrivate::drawsOwnThemeBackground(widget) ||
qobject_cast<const QComboBoxListView *>(widget) ||
qobject_cast<const QMenu *> (widget)) {
QS60StylePrivate::SkinElements skinElement = QS60StylePrivate::SE_OptionsMenu;
@@ -2618,7 +2618,7 @@ void QS60Style::polish(QWidget *widget)
if (!widget)
return;
- if (QS60StylePrivate::isSkinnableDialog(widget)) {
+ if (QS60StylePrivate::drawsOwnThemeBackground(widget)) {
widget->setAttribute(Qt::WA_StyledBackground);
} else if (false
#ifndef QT_NO_MENU
@@ -2638,7 +2638,7 @@ void QS60Style::polish(QWidget *widget)
void QS60Style::unpolish(QWidget *widget)
{
- if (QS60StylePrivate::isSkinnableDialog(widget)) {
+ if (QS60StylePrivate::drawsOwnThemeBackground(widget)) {
widget->setAttribute(Qt::WA_StyledBackground, false);
} else if (false
#ifndef QT_NO_MENU