Bug 275187

Summary: Build error when building Calligra against Qt 4.8
Product: [Applications] calligracommon Reporter: Raymond Wooninck <tittiatcoke>
Component: generalAssignee: Calligra Bugs <calligra-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: annma, cberger, jreznik
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Raymond Wooninck 2011-06-08 08:34:16 UTC
Version:           unspecified (using Devel) 
OS:                Linux

When Calligra is build against Qt 4.8, the following error is generated :

/usr/src/packages/BUILD/calligra-2.3.79.git20110607/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp:153:26: error: ambiguous overload for 'operator<<' in '(&(& operator<<(QDebug, const QBrush&)((*(const QBrush*)(& KDChart::BackgroundAttributes::brush() const()))).QDebug::operator<<(((const char*)"pixmapmode=")))->QDebug::operator<<(((int)(& ba)->KDChart::BackgroundAttributes::pixmapMode())))->QDebug::operator<<(((const char*)"pixmap=")) << KDChart::BackgroundAttributes::pixmap() const()'
/usr/src/packages/BUILD/calligra-2.3.79.git20110607/plugins/chartshape/kdchart/src/KDChartBackgroundAttributes.cpp:153:26: note: candidates are:
/usr/include/QtCore/qvariant.h:606:22: note: QDebug operator<<(QDebug, const QVariant&)
/usr/include/QtGui/qbrush.h:171:21: note: QDebug operator<<(QDebug, const QBrush&)
make[2]: *** [plugins/chartshape/kdchart/src/CMakeFiles/kdchart.dir/KDChartBackgroundAttributes.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/calligra-2.3.79.git20110607/build'
make[1]: *** [plugins/chartshape/kdchart/src/CMakeFiles/kdchart.dir/all] Error 2

Building against Qt 4.7 goes fine. 

Reproducible: Always

Steps to Reproduce:
1. Install Qt 4.8
2. Compile Calligra
Comment 1 Anne-Marie Mahfouf 2011-06-08 17:13:23 UTC
It would be better to report such errors to Qt people so they could tell you if it's a Qt problem and if not, how to fix the code to support Qt 4.8. Most developers use Qt 4.7 and not 4.8 yet.
Maybe also use the build system mailing list instead, it would really be more useful.
Comment 2 Jaroslav Reznik 2011-09-08 12:17:59 UTC
https://bugreports.qt.nokia.com//browse/QTBUG-19703 - closed as invalid as there's no QDebug operator<<(QDebug, const QPixmap&), still I don't get it as I can't find one in 4.7 branch...
Comment 3 Cyrille Berger 2011-09-08 14:28:10 UTC
And fixed in calligra master: http://quickgit.kde.org/?p=calligra.git&a=commit&h=accabfeac22e869e5a248a764a64096d107e4c7c