[atlantik-cvs] CVS: kdegames/atlantik/libatlantikui token.cpp,1.34,1.35
| Newsgroups | gmane.comp.kde.devel.atlantik |
|---|---|
| Message-ID | <[email protected]> |
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv26460/libatlantikui
Modified Files:
token.cpp
Log Message:
support for custom tokens
Index: token.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/token.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- token.cpp 18 Dec 2002 23:37:49 -0000 1.34
+++ token.cpp 19 Dec 2002 03:11:08 -0000 1.35
@@ -89,15 +89,15 @@
delete m_image;
m_image = 0;
- QString filename = locate("data", "atlantik/themes/default/tokens/" + m_imageName + ".png");
+ QString filename = locate("data", "atlantik/themes/default/tokens/" + m_imageName);
if (KStandardDirs::exists(filename))
m_image = new QPixmap(filename);
if (!m_image)
{
- m_imageName = "hamburger";
+ m_imageName = "hamburger.png";
- filename = locate("data", "atlantik/themes/default/tokens/" + m_imageName + ".png");
+ filename = locate("data", "atlantik/themes/default/tokens/" + m_imageName);
if (KStandardDirs::exists(filename))
m_image = new QPixmap(filename);
}