[rkward-cvs] SF.net SVN: rkward:[2841] trunk/rkward/rkward/dialogs/rkselectlistdialog. cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Fri Apr 23 11:01:39 UTC 2010
Revision: 2841
http://rkward.svn.sourceforge.net/rkward/?rev=2841&view=rev
Author: tfry
Date: 2010-04-23 11:01:38 +0000 (Fri, 23 Apr 2010)
Log Message:
-----------
Fix for compilation with Qt < 4.5
Modified Paths:
--------------
trunk/rkward/rkward/dialogs/rkselectlistdialog.cpp
Modified: trunk/rkward/rkward/dialogs/rkselectlistdialog.cpp
===================================================================
--- trunk/rkward/rkward/dialogs/rkselectlistdialog.cpp 2010-04-23 04:20:38 UTC (rev 2840)
+++ trunk/rkward/rkward/dialogs/rkselectlistdialog.cpp 2010-04-23 11:01:38 UTC (rev 2841)
@@ -43,7 +43,7 @@
input->addItems (choices);
if (multiple) input->setSelectionMode (QAbstractItemView::MultiSelection);
else input->setSelectionMode (QAbstractItemView::SingleSelection);
- for (int i = 0; i < preselected.length (); ++i) {
+ for (int i = 0; i < preselected.count (); ++i) {
int pos = choices.indexOf (preselected[i]);
if (pos >= 0) input->item (pos)->setSelected (true);
}
@@ -80,7 +80,7 @@
QStringList list;
QList<QListWidgetItem*> selected = dialog->input->selectedItems ();
- for (int i = 0; i < selected.length (); ++i) {
+ for (int i = 0; i < selected.count (); ++i) {
list.append (selected[i]->text ());
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list