From 1b8c9fa26d058829ffda6c26b998463fba2363b7 Mon Sep 17 00:00:00 2001 From: Noldor Date: Sun, 4 May 2008 09:56:51 +0000 Subject: theme dialog QT4 port (wip) + some fixes git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1666 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_listbox.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules/objects/class_listbox.cpp') diff --git a/src/modules/objects/class_listbox.cpp b/src/modules/objects/class_listbox.cpp index 592d3b27d..3db8e2ca7 100644 --- a/src/modules/objects/class_listbox.cpp +++ b/src/modules/objects/class_listbox.cpp @@ -24,7 +24,6 @@ #include "kvi_error.h" #include "kvi_locale.h" #include "kvi_debug.h" -#include "kvi_tal_listbox.h" #include "class_list.h" #include "class_listbox.h" @@ -181,7 +180,7 @@ bool KviKvsObject_listbox::functionchangeItem(KviKvsObjectFunctionCall *c) KVSO_PARAMETERS_END(c) if(!widget()) return true; if (szText.isEmpty()) c->warning(__tr2qs("No string parameter given - using empty string")); - if(iIndex >= (cnt = ((KviTalListBox *)widget())->count())) + if(iIndex >= (cnt = ((QListWidget *)widget())->count())) { c->warning(__tr2qs("Item index [%d] is too big - defaulting to " \ "$count() - 1 [%d]"), iIndex, cnt); @@ -204,7 +203,7 @@ bool KviKvsObject_listbox::functionremoveItem(KviKvsObjectFunctionCall *c) KVSO_PARAMETER("index",KVS_PT_UNSIGNEDINTEGER,0,iIndex) KVSO_PARAMETERS_END(c) if(!widget()) return true; - if(iIndex >= (cnt = ((KviTalListBox *)widget())->count())) + if(iIndex >= (cnt = ((QListWidget *)widget())->count())) { c->warning(__tr2qs("Item index [%d] is too big - defaulting to " \ "$count() - 1 [%d]"), iIndex, cnt); -- cgit v1.3.1-10-gc9f91