Bug 257321 - build fails - argument mismatch in kopeteinfodialog.cpp
Summary: build fails - argument mismatch in kopeteinfodialog.cpp
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: Notifications (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 14:07 UTC by tropikhajma
Modified: 2010-12-04 01:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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