From a522568283195cd4b851b190d249d33e25489642 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Sat, 5 Sep 2009 10:12:54 +1000 Subject: Fixed compile for S60. Q_DECLARE_METATYPE must appear before qRegisterMetaType. --- src/gui/painting/qpaintbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/painting/qpaintbuffer.cpp b/src/gui/painting/qpaintbuffer.cpp index f9cb108..4d8b8c9 100644 --- a/src/gui/painting/qpaintbuffer.cpp +++ b/src/gui/painting/qpaintbuffer.cpp @@ -1740,6 +1740,7 @@ struct QPaintBufferCacheEntry QVariant::Type type; quint64 cacheKey; }; +Q_DECLARE_METATYPE(QPaintBufferCacheEntry); QDataStream &operator<<(QDataStream &stream, const QPaintBufferCacheEntry &entry) { @@ -1759,7 +1760,6 @@ static int qRegisterPaintBufferMetaTypes() return 0; // something } -Q_DECLARE_METATYPE(QPaintBufferCacheEntry); Q_CONSTRUCTOR_FUNCTION(qRegisterPaintBufferMetaTypes) QDataStream &operator<<(QDataStream &stream, const QPaintBuffer &buffer) -- cgit v0.12