[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/libatlantikui
From: kde () office ! kde ! org
Date: 2004-01-27 2:51:01
Message-ID: 20040127025101.C6B0C99AC () office ! kde ! org
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/libatlantikui
In directory office:/tmp/cvs-serv30975/libatlantikui
Modified Files:
estatedetails.cpp
Log Message:
QString::find is faster than ::contains
Index: estatedetails.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/estatedetails.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- estatedetails.cpp 20 Jan 2004 06:51:30 -0000 1.27
+++ estatedetails.cpp 27 Jan 2004 02:50:59 -0000 1.28
@@ -1,4 +1,4 @@
-// Copyright (c) 2002-2003 Rob Kaper <cap@capsi.com>
+// Copyright (c) 2002-2004 Rob Kaper <cap@capsi.com>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@ -18,6 +18,7 @@
#include <qpixmap.h>
#include <qlayout.h>
#include <qptrlist.h>
+#include <qregexp.h>
#include <qvgroupbox.h>
#include <kdialog.h>
@@ -295,7 +296,7 @@
return;
QListViewItem *infoText = new QListViewItem(m_infoListView, m_infoListView->lastItem(), text);
- if (text.contains("rolls"))
+ if ( text.find( QRegExp("rolls") ) != -1 )
infoText->setPixmap(0, QPixmap(SmallIcon("roll")));
else
infoText->setPixmap(0, QPixmap(SmallIcon("atlantik")));
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@kde.org
https://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic