diff options
| author | 2008-05-04 09:56:51 +0000 | |
|---|---|---|
| committer | 2008-05-04 09:56:51 +0000 | |
| commit | 1b8c9fa26d058829ffda6c26b998463fba2363b7 (patch) | |
| tree | e994db6f3b5d9c478795dc03da7c0ea123e8dfb5 /src/modules/objects/class_listbox.cpp | |
| parent | quick fix (diff) | |
| download | KVIrc-1b8c9fa26d058829ffda6c26b998463fba2363b7.tar.gz KVIrc-1b8c9fa26d058829ffda6c26b998463fba2363b7.tar.bz2 KVIrc-1b8c9fa26d058829ffda6c26b998463fba2363b7.zip | |
theme dialog QT4 port (wip) + some fixes
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1666 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_listbox.cpp')
| -rw-r--r-- | src/modules/objects/class_listbox.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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); |
