summaryrefslogtreecommitdiffstats
path: root/pokemodr/StoreUI.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-06-04 02:16:32 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-06-04 02:16:32 +0000
commit9180817f1d52ffe67ea30ec07ebc87d8a274319c (patch)
tree361d284edc26c833aa6d78ea071f18b795d60796 /pokemodr/StoreUI.cpp
parent147d0e7a06edca76880395b0e4a6e222772b915f (diff)
downloadsigen-9180817f1d52ffe67ea30ec07ebc87d8a274319c.tar.gz
sigen-9180817f1d52ffe67ea30ec07ebc87d8a274319c.tar.xz
sigen-9180817f1d52ffe67ea30ec07ebc87d8a274319c.zip
[FIX] Windows build
[FIX] Spacers now have size [FIX] ListWidget editing now works (though could use some improvement with flickering) [FIX] KFileDialog now compiles git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@191 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/StoreUI.cpp')
-rw-r--r--pokemodr/StoreUI.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/pokemodr/StoreUI.cpp b/pokemodr/StoreUI.cpp
index fe9afaed..8c7e4a25 100644
--- a/pokemodr/StoreUI.cpp
+++ b/pokemodr/StoreUI.cpp
@@ -75,11 +75,7 @@ void StoreUI::on_varName_textChanged(const QString& name)
varName->setCursorPosition(cursor);
}
-void StoreUI::on_varItems_itemSelectionChanged()
+void StoreUI::on_varItems_itemClicked(QListWidgetItem* item)
{
- for (int i = 0; i < varItems->count(); ++i)
- {
- const QListWidgetItem* widgetItem = varItems->item(i);
- static_cast<Store*>(modified())->setItem(widgetItem->data(Qt::UserRole).toInt(), widgetItem->isSelected());
- }
+ static_cast<Store*>(modified())->setItem(item->data(Qt::UserRole).toInt(), item->isSelected());
}