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

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

Modified Files:
	portfolioview.cpp 
Log Message:
better portfolio geoms, makes them show correctly in config status

Index: portfolioview.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/portfolioview.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- portfolioview.cpp	19 Dec 2002 04:03:40 -0000	1.51
+++ portfolioview.cpp	19 Jan 2003 20:08:21 -0000	1.52
@@ -53,6 +53,8 @@
 	qpixmap = 0;
 	b_recreate = true;
 
+	setMinimumHeight(20);
+
 	// Init icon
 	m_image = 0;
 	m_imageName = "hamburger.png";
@@ -127,7 +129,9 @@
 		}
 	}
 	setMinimumWidth(x + PE_WIDTH + marginHint);
-	setMinimumHeight(bottom + PE_HEIGHT + marginHint);
+	int minHeight = bottom + PE_HEIGHT + marginHint;
+	if (minHeight > minimumHeight())
+		setMinimumHeight(minHeight);
 }
 
 void PortfolioView::loadIcon()
@@ -148,12 +152,19 @@
 
 	if (!m_image)
 	{
+		return;
+
+/*
 		m_imageName = "hamburger.png";
 
 		QString filename = locate("data", "atlantik/themes/default/tokens/" + m_imageName);
 		if (KStandardDirs::exists(filename))
 			m_image = new QPixmap(filename);
+*/
 	}
+	else if (ICONSIZE > minimumHeight())
+		setMinimumHeight(ICONSIZE);
+
 
 	QWMatrix m;
 	m.scale(double(ICONSIZE) / m_image->width(), double(ICONSIZE) / m_image->height());
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.