aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin/channelsjoinwindow.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2010-07-14 13:31:37 +0000
committerGravatar Szymon Tomasz Stefanek2010-07-14 13:31:37 +0000
commit484d98ded2038f4dd262d546b4e0fe460d907bd4 (patch)
tree4e9541dab6a937b8f580912e8c7d6decce42ef68 /src/modules/channelsjoin/channelsjoinwindow.cpp
parentupdated some mediaplayer homepage urls and some other typos, thanks xoffice (diff)
downloadKVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.tar.gz
KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.tar.bz2
KVIrc-484d98ded2038f4dd262d546b4e0fe460d907bd4.zip
Rewrite parts of the regchan module in order to
avoid the heavy usage of pointers. Add some new nice debug macros and tools. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4669 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/channelsjoin/channelsjoinwindow.cpp')
-rw-r--r--src/modules/channelsjoin/channelsjoinwindow.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules/channelsjoin/channelsjoinwindow.cpp b/src/modules/channelsjoin/channelsjoinwindow.cpp
index cc1317513..1dee30d49 100644
--- a/src/modules/channelsjoin/channelsjoinwindow.cpp
+++ b/src/modules/channelsjoin/channelsjoinwindow.cpp
@@ -33,9 +33,9 @@
#include "kvi_console.h"
#include "kvi_regchan.h"
#include "kvi_kvs_script.h"
-#include <QTreeWidget>
#include "kvi_tal_groupbox.h"
+#include <QTreeWidget>
#include <QLabel>
#include <QLineEdit>
#include <QLayout>
@@ -168,14 +168,13 @@ void KviChannelsJoinWindow::fillListView()
par->setText(0,__tr2qs("Registered Channels"));
par->setExpanded(true);
- KviPointerHashTable<const char *,KviRegisteredChannelList> * d = g_pRegisteredChannelDataBase->channelDict();
+ QHash<QString,KviRegisteredChannelList *> * d = g_pRegisteredChannelDataBase->channelDict();
if(d)
{
- KviPointerHashTableIterator<const char *,KviRegisteredChannelList> it(*d);
- while(it.current())
+ for(QHash<QString,KviRegisteredChannelList *>::Iterator it = d->begin();it != d->end();++it)
{
QTreeWidgetItem * chld = new QTreeWidgetItem(par);
- chld->setText(0,it.currentKey());
+ chld->setText(0,it.key());
chld->setIcon(0,*(g_pIconManager->getSmallIcon(KVI_SMALLICON_CHANNEL)));
++it;
}