On Sunday 18 April 2010 06:03:33 Pavel Heimlich, a.k.a. hajma wrote:
> Hi,
> building kdepim from current svn on OpenSolaris with the Sun Studio,
> I'm encountering the below issue:
> 
> [ 20%] Building CXX object
> kopete/libkopete/CMakeFiles/kopete.dir/ui/kopeteinfodialog.o
> 
> "/export/home/test/Dashboards/installs/2.6.2/kdelibs/include/KDE/../ktitlewidget.h",
> line 144: Error: Formal argument alignment of type
> QFlags<Qt::AlignmentFlag> in call to KTitleWidget::setText(const
> QString&, QFlags<Qt::AlignmentFlag>) is being passed int.
> 
> I have a patch/hack at
> http://solaris.bionicmutton.org/hg/kde4-specs-440/file/8c04645986be/specs/patches/kdenetwork-kopeteinfodialog.diff
> but it does not really feel right, as I understood that the default
> value is supposed to be used when alignment is not specified
> 
> sun Studio tends to be stricter regarding the C++ standard, at the
> same time it can be a bug in it too, so any hints are welcome
> 
> regards
> 
> hajma

Hmm. In case Qt::AlignVCenter is automatically used as well, the patch to 
Kopete looks OK. However, I think it should be fixed at kdelibs-level (even 
though at first glance there doesn't seem to be anything wrong there). Have you 
discussed this matter with dfaure or someone else? Have you noticed the same 
bug in other code that calls setText without passing the second parameter 
explicitly?
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to