[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui portfolioview.cpp,1.52,1.53

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

Modified Files:
	portfolioview.cpp 
Log Message:
show host name in portfolio when portfolioestates are empty

Index: portfolioview.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/portfolioview.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- portfolioview.cpp	19 Jan 2003 20:08:21 -0000	1.52
+++ portfolioview.cpp	19 Jan 2003 20:42:32 -0000	1.53
@@ -53,7 +53,7 @@
 	qpixmap = 0;
 	b_recreate = true;
 
-	setMinimumHeight(20);
+	setMinimumHeight(ICONSIZE);
 
 	// Init icon
 	m_image = 0;
@@ -165,7 +165,6 @@
 	else if (ICONSIZE > minimumHeight())
 		setMinimumHeight(ICONSIZE);
 
-
 	QWMatrix m;
 	m.scale(double(ICONSIZE) / m_image->width(), double(ICONSIZE) / m_image->height());
 	QPixmap *scaledPixmap = new QPixmap(ICONSIZE, ICONSIZE);
@@ -206,6 +205,15 @@
 		painter.setFont(QFont(KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), QFont::Bold));
 		painter.drawText(ICONSIZE + KDialog::marginHint(), 15, m_player->name());
 		painter.drawText(width() - 50, 15, QString::number(m_player->money()));
+
+		if (!portfolioEstateMap.size())
+		{
+			painter.setPen(Qt::black);
+			painter.setBrush(Qt::white);
+
+			painter.setFont(QFont(KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), QFont::Normal));
+			painter.drawText(ICONSIZE + KDialog::marginHint(), 30, m_player->host());
+		}
 
 		b_recreate = false;
 	}
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.