[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui estatedetails.cpp,1.14,1.15

[email protected]
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv6720/libatlantikui

Modified Files:
	estatedetails.cpp 
Log Message:
qlistview items take qstring, not int

Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- estatedetails.cpp	2002/11/27 21:11:18	1.14
+++ estatedetails.cpp	2002/11/27 21:12:33	1.15
@@ -62,14 +62,14 @@
 	QListViewItem *infoText = 0;
 	if (!text.isEmpty())
 	{
-		infoText = new QListViewItem(m_infoListView, text, m_infoListView->childCount());
+		infoText = new QListViewItem(m_infoListView, text, QString::number(m_infoListView->childCount()));
 		infoText->setPixmap(0, QPixmap(SmallIcon("atlantik")));
 	}
 
 	// Price
 	if (m_estate->price())
 	{
-		infoText = new QListViewItem(m_infoListView, i18n("Price: %1").arg(m_estate->price()), m_infoListView->childCount());
+		infoText = new QListViewItem(m_infoListView, i18n("Price: %1").arg(m_estate->price()), QString::number(m_infoListView->childCount()));
 		infoText->setPixmap(0, QPixmap(SmallIcon("info")));
 	}
 
@@ -81,10 +81,10 @@
 
 		if (m_estate->isOwned())
 		{
-			infoText = new QListViewItem(m_infoListView, i18n("Houses: %1").arg(m_estate->houses()), m_infoListView->childCount());
+			infoText = new QListViewItem(m_infoListView, i18n("Houses: %1").arg(m_estate->houses()), QString::number(m_infoListView->childCount()));
 			infoText->setPixmap(0, QPixmap(SmallIcon("info")));
 
-			infoText = new QListViewItem(m_infoListView, i18n("Mortgaged: %1").arg(m_estate->isMortgaged() ? i18n("Yes") : i18n("No")), m_infoListView->childCount());
+			infoText = new QListViewItem(m_infoListView, i18n("Mortgaged: %1").arg(m_estate->isMortgaged() ? i18n("Yes") : i18n("No")), QString::number(m_infoListView->childCount()));
 			infoText->setPixmap(0, QPixmap(SmallIcon("info")));
 		}
 	}
@@ -259,7 +259,7 @@
 	m_buttonCommandMap.clear();
 
 	// Append text
-	QListViewItem *infoText = new QListViewItem(m_infoListView, text, m_infoListView->childCount());
+	QListViewItem *infoText = new QListViewItem(m_infoListView, text, QString::number(m_infoListView->childCount()));
 	infoText->setPixmap(0, QPixmap(SmallIcon("atlantik")));
 
 	// Redraw details
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.