Gentoo Archives: gentoo-commits

From: "Andreas HAttel (dilfridge)" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/koffice-libs/files: koffice-libs-2.3.3-qt48.patch
Date: Tue, 07 Feb 2012 21:11:00
Message-Id: 20120207211050.B81A82004C@flycatcher.gentoo.org
1 dilfridge 12/02/07 21:10:50
2
3 Added: koffice-libs-2.3.3-qt48.patch
4 Log:
5 Add patch to fix build with Qt 4.8, bug 399291. Backport from Calligra.
6
7 (Portage version: 2.1.10.44/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 app-office/koffice-libs/files/koffice-libs-2.3.3-qt48.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/koffice-libs/files/koffice-libs-2.3.3-qt48.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/koffice-libs/files/koffice-libs-2.3.3-qt48.patch?rev=1.1&content-type=text/plain
14
15 Index: koffice-libs-2.3.3-qt48.patch
16 ===================================================================
17 From accabfeac22e869e5a248a764a64096d107e4c7c Mon Sep 17 00:00:00 2001
18 From: Michael Jansen <kde@××××××××××××××.biz>
19 Date: Mon, 11 Jul 2011 00:27:38 +0200
20 Subject: [PATCH] Fix build with QT 4.8.
21
22 KDChartBackgroundAttributes.cpp:153:26: error: ambiguous overload for 'operator<<' in '((QDebug*)((QDebug*)operator<<(QDebug, const QBrush&)(((const QBrush&)((const QBrush*)(& KDChart::BackgroundAttributes::brush() const())))).QDebug::operator<<(((const char*)"pixmapmode=")))->QDebug::operator<<(((int)((const KDChart::BackgroundAttributes*)ba)->KDChart::BackgroundAttributes::pixmapMode())))->QDebug::operator<<(((const char*)"pixmap=")) << KDChart::BackgroundAttributes::pixmap() const()'
23
24 It does not know if it should convert QPixmap to QVariant or QBrush before dumping it into
25 qDebug(). It happens because with qt4.8 qvariant is included implictely with klocale.h over
26 qlocale.h. Which was not the case before qt4.8.
27
28 Related: QTBUG-19764: Please add QDebug operator for QPixmap
29 ---
30 .../kdchart/src/KDChartBackgroundAttributes.cpp | 5 ++++-
31 1 files changed, 4 insertions(+), 1 deletions(-)
32
33 diff --git a/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp b/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp
34 index 2dc4974..9f2990a 100644
35 --- a/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp
36 +++ b/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp
37 @@ -22,6 +22,9 @@
38
39 #include "KDChartBackgroundAttributes.h"
40 #include <QPixmap>
41 +#if !defined(QT_NO_DEBUG_STREAM)
42 +#include <QVariant>
43 +#endif
44
45 #include <KDABLibFakes>
46
47 @@ -150,7 +153,7 @@ QDebug operator<<(QDebug dbg, const KDChart::BackgroundAttributes& ba)
48 << "visible="<<ba.isVisible()
49 << "brush="<<ba.brush()
50 << "pixmapmode="<<ba.pixmapMode()
51 - << "pixmap="<<ba.pixmap()
52 + << "pixmap="<<QVariant(ba.pixmap())
53 << ")";
54 return dbg;
55 }
56 --
57 1.7.3.4