summaryrefslogtreecommitdiffstats
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
parentfc8673c8a0e3ef11aa1eb8c932e0fcd843c11465 (diff)
downloadQt-377a0ece82b91e00e4fc8935a73dc18cd218abf4.zip
Qt-377a0ece82b91e00e4fc8935a73dc18cd218abf4.tar.gz
Qt-377a0ece82b91e00e4fc8935a73dc18cd218abf4.tar.bz2
S60Style: Change IsSkinnableDialog method name to drawsOwnThemeBackground.
-rw-r--r--src/gui/styles/qs60style.cpp8
-rw-r--r--src/gui/styles/qs60style_p.h3
2 files changed, 5 insertions, 6 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
diff --git a/src/gui/styles/qs60style_p.h b/src/gui/styles/qs60style_p.h
index 1df202d..37c6ec7 100644
--- a/src/gui/styles/qs60style_p.h
+++ b/src/gui/styles/qs60style_p.h
@@ -358,8 +358,7 @@ public:
// gets lighter color than base color
static QColor lighterColor(const QColor &baseColor);
//deduces if the given widget should have separately themeable background
- //todo: change method name
- static bool isSkinnableDialog(const QWidget *widget);
+ static bool drawsOwnThemeBackground(const QWidget *widget);
// gets layout
static const QHash<QStyle::PixelMetric, int> &s60StyleLayout();