summaryrefslogtreecommitdiffstats
path: root/src/gui/styles
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2010-11-20 15:27:26 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2010-11-22 12:24:19 (GMT)
commitf4b2f4fa4a8b6ffecb2fcdb46b91f12d3820c5ac (patch)
tree48d774052872d865033db1dcdb65c9777c1b9142 /src/gui/styles
parent538e7b8ddf45936bb274ed3230b591b3459edfa7 (diff)
downloadQt-f4b2f4fa4a8b6ffecb2fcdb46b91f12d3820c5ac.zip
Qt-f4b2f4fa4a8b6ffecb2fcdb46b91f12d3820c5ac.tar.gz
Qt-f4b2f4fa4a8b6ffecb2fcdb46b91f12d3820c5ac.tar.bz2
Fix some warnings on Mac
Reviewed-by: Fabien Freling
Diffstat (limited to 'src/gui/styles')
-rw-r--r--src/gui/styles/qstyle.cpp2
-rw-r--r--src/gui/styles/qstyleoption.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/styles/qstyle.cpp b/src/gui/styles/qstyle.cpp
index 3ebfab2..be8f794 100644
--- a/src/gui/styles/qstyle.cpp
+++ b/src/gui/styles/qstyle.cpp
@@ -2456,6 +2456,8 @@ QDebug operator<<(QDebug debug, QStyle::State state)
qSort(states);
debug << states.join(QLatin1String(" | "));
debug << ')';
+#else
+ Q_UNUSED(state);
#endif
return debug;
}
diff --git a/src/gui/styles/qstyleoption.cpp b/src/gui/styles/qstyleoption.cpp
index 4780edf..05ca793 100644
--- a/src/gui/styles/qstyleoption.cpp
+++ b/src/gui/styles/qstyleoption.cpp
@@ -5483,6 +5483,8 @@ QDebug operator<<(QDebug debug, const QStyleOption::OptionType &optionType)
case QStyleOption::SO_GraphicsItem:
debug << "SO_GraphicsItem"; break;
}
+#else
+ Q_UNUSED(optionType);
#endif
return debug;
}
@@ -5496,6 +5498,8 @@ QDebug operator<<(QDebug debug, const QStyleOption &option)
debug << ',' << option.state;
debug << ',' << option.rect;
debug << ')';
+#else
+ Q_UNUSED(option);
#endif
return debug;
}