summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpdf.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-11-25 18:20:25 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-11-26 20:47:20 (GMT)
commit86ed592bba2a7ef23f5065397144c3915bdbdbd5 (patch)
treecfcf7055a9b6221f18bac0a4e6b4dd36c7af90c5 /src/gui/painting/qpdf.cpp
parent5e257bd44fa4a76f4c2c573a6c5623802022ff18 (diff)
downloadQt-86ed592bba2a7ef23f5065397144c3915bdbdbd5.zip
Qt-86ed592bba2a7ef23f5065397144c3915bdbdbd5.tar.gz
Qt-86ed592bba2a7ef23f5065397144c3915bdbdbd5.tar.bz2
Fix warnings with GCC 4.5: some cases are not part of the enum
Diffstat (limited to 'src/gui/painting/qpdf.cpp')
-rw-r--r--src/gui/painting/qpdf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index ba5d164..bd68d2a 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -1390,7 +1390,7 @@ int QPdfBaseEngine::metric(QPaintDevice::PaintDeviceMetric metricType) const
void QPdfBaseEngine::setProperty(PrintEnginePropertyKey key, const QVariant &value)
{
Q_D(QPdfBaseEngine);
- switch (key) {
+ switch (int(key)) {
case PPK_CollateCopies:
d->collate = value.toBool();
break;
@@ -1480,7 +1480,7 @@ QVariant QPdfBaseEngine::property(PrintEnginePropertyKey key) const
Q_D(const QPdfBaseEngine);
QVariant ret;
- switch (key) {
+ switch (int(key)) {
case PPK_CollateCopies:
ret = d->collate;
break;