summaryrefslogtreecommitdiff
path: root/src/gui/painting/qpaintbuffer.cpp
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2009-09-28 10:46:29 +0200
committerhjk <qtc-committer@nokia.com>2009-09-28 12:06:25 +0200
commit994daec967ea0e3db2fa6093efe1274f9a79d2ff (patch)
tree5f9db6029a703e74067aeabd1e8ec2d3ca378883 /src/gui/painting/qpaintbuffer.cpp
parentc912b0234ead0e35a969b5600a61c77b60e18aa6 (diff)
downloadqt4-tools-994daec967ea0e3db2fa6093efe1274f9a79d2ff.tar.gz
compile fix with namespace
Reviewed-by: sroedal
Diffstat (limited to 'src/gui/painting/qpaintbuffer.cpp')
-rw-r--r--src/gui/painting/qpaintbuffer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/painting/qpaintbuffer.cpp b/src/gui/painting/qpaintbuffer.cpp
index 1038f74f6c..57e7cd033c 100644
--- a/src/gui/painting/qpaintbuffer.cpp
+++ b/src/gui/painting/qpaintbuffer.cpp
@@ -49,6 +49,8 @@
//#define QPAINTBUFFER_DEBUG_DRAW
+QT_BEGIN_NAMESPACE
+
extern int qt_defaultDpiX();
extern int qt_defaultDpiY();
extern void qt_format_text(const QFont &font,
@@ -1740,7 +1742,9 @@ struct QPaintBufferCacheEntry
QVariant::Type type;
quint64 cacheKey;
};
+QT_END_NAMESPACE
Q_DECLARE_METATYPE(QPaintBufferCacheEntry)
+QT_BEGIN_NAMESPACE
QDataStream &operator<<(QDataStream &stream, const QPaintBufferCacheEntry &entry)
{
@@ -1832,3 +1836,4 @@ QDataStream &operator>>(QDataStream &stream, QPaintBuffer &buffer)
return stream;
}
+QT_END_NAMESPACE