Bug 257321

Summary: build fails - argument mismatch in kopeteinfodialog.cpp
Product: [Unmaintained] kopete Reporter: tropikhajma <tropikhajma>
Component: NotificationsAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tropikhajma 2010-11-19 14:07:56 UTC
Version:           unspecified (using Devel) 
OS:                Solaris

building kdenetwork from trunk fails with
...
"/export/home/test/Dashboards/installs/2.8.1/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.

(http://my.cdash.org/viewBuildError.php?buildid=116010)

this is using the Sun Studio 12.1 compiler on Solaris 11 Express

the below patch fixes it for me:
Index: kopete/libkopete/ui/kopeteinfodialog.cpp
===================================================================
--- kopete/libkopete/ui/kopeteinfodialog.cpp    (revision 1197844)
+++ kopete/libkopete/ui/kopeteinfodialog.cpp    (working copy)
@@ -90,7 +90,7 @@
 
 void InfoDialog::setTitle(const QString &title)
 {
-       d->title->setText( title );
+       d->title->setText( title, Qt::AlignLeft );
 }
 

Reproducible: Always
Comment 1 tropikhajma 2010-12-04 01:29:32 UTC
SVN commit 1203442 by pavelheimlich:

fix argument mismatch
BUG:257321


 M  +1 -1      kopeteinfodialog.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1203442