aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin/channelsjoinwindow.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2007-01-26 03:54:22 +0000
committerGravatar Szymon Tomasz Stefanek2007-01-26 03:54:22 +0000
commit1a8a7e6f145613c34ff0604b95370995fc625ef2 (patch)
tree79b63ab083ae2eecfbf98170e9d50731f6bb4d67 /src/modules/channelsjoin/channelsjoinwindow.cpp
parentfix win compilation and update win projects (diff)
downloadKVIrc-1a8a7e6f145613c34ff0604b95370995fc625ef2.tar.gz
KVIrc-1a8a7e6f145613c34ff0604b95370995fc625ef2.tar.bz2
KVIrc-1a8a7e6f145613c34ff0604b95370995fc625ef2.zip
More Qt 4.x port and the torrent module by Alexander Stillich
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@255 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/channelsjoin/channelsjoinwindow.cpp')
-rw-r--r--src/modules/channelsjoin/channelsjoinwindow.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/channelsjoin/channelsjoinwindow.cpp b/src/modules/channelsjoin/channelsjoinwindow.cpp
index c420bb6ed..ce46cbe79 100644
--- a/src/modules/channelsjoin/channelsjoinwindow.cpp
+++ b/src/modules/channelsjoin/channelsjoinwindow.cpp
@@ -37,7 +37,7 @@
#include <qlabel.h>
#include <qlineedit.h>
-#include <qlistview.h>
+#include "kvi_tal_listview.h"
#include <qgroupbox.h>
#include <qlayout.h>
#include <qcheckbox.h>
@@ -60,13 +60,13 @@ KviChannelsJoinWindow::KviChannelsJoinWindow(QWidget * par, const char * name)
QGridLayout * g = new QGridLayout(this,4,2,4,8);
- m_pListView = new QListView(this);
+ m_pListView = new KviTalListView(this);
m_pListView->addColumn(__tr2qs("Channel"));
m_pListView->setRootIsDecorated(true);
- m_pListView->setSelectionMode(QListView::Single);
+ m_pListView->setSelectionMode(KviTalListView::Single);
g->addMultiCellWidget(m_pListView,0,0,0,1);
- connect(m_pListView,SIGNAL(clicked(QListViewItem *)),this,SLOT(itemClicked(QListViewItem *)));
- connect(m_pListView,SIGNAL(doubleClicked(QListViewItem *)),this,SLOT(itemDoubleClicked(QListViewItem *)));
+ connect(m_pListView,SIGNAL(clicked(KviTalListViewItem *)),this,SLOT(itemClicked(KviTalListViewItem *)));
+ connect(m_pListView,SIGNAL(doubleClicked(KviTalListViewItem *)),this,SLOT(itemDoubleClicked(KviTalListViewItem *)));
m_pGroupBox = new QGroupBox(2,QGroupBox::Horizontal,__tr2qs("Channel" ),this);
@@ -151,9 +151,9 @@ void KviChannelsJoinWindow::fillListView()
m_pListView->header()->hide();
- QListViewItem * par = new QListViewItem(m_pListView,__tr2qs("Recent Channels"));
+ KviTalListViewItem * par = new KviTalListViewItem(m_pListView,__tr2qs("Recent Channels"));
par->setOpen(true);
- QListViewItem * chld;
+ KviTalListViewItem * chld;
if(m_pConsole)
{
@@ -163,14 +163,14 @@ void KviChannelsJoinWindow::fillListView()
{
for(QStringList::Iterator it = pList->begin(); it != pList->end(); ++it)
{
- chld = new QListViewItem(par,*it);
+ chld = new KviTalListViewItem(par,*it);
chld->setPixmap(0,*(g_pIconManager->getSmallIcon(KVI_SMALLICON_CHANNEL)));
}
}
}
// FIXME: Registered channels go here!
- par = new QListViewItem(m_pListView,__tr2qs("Registered Channels"));
+ par = new KviTalListViewItem(m_pListView,__tr2qs("Registered Channels"));
par->setOpen(true);
KviAsciiDict<KviRegisteredChannelList> * d = g_pRegisteredChannelDataBase->channelDict();
@@ -179,7 +179,7 @@ void KviChannelsJoinWindow::fillListView()
KviAsciiDictIterator<KviRegisteredChannelList> it(*d);
while(it.current())
{
- chld = new QListViewItem(par,it.currentKey());
+ chld = new KviTalListViewItem(par,it.currentKey());
chld->setPixmap(0,*(g_pIconManager->getSmallIcon(KVI_SMALLICON_CHANNEL)));
++it;
}
@@ -188,7 +188,7 @@ void KviChannelsJoinWindow::fillListView()
}
-void KviChannelsJoinWindow::itemClicked(QListViewItem * it)
+void KviChannelsJoinWindow::itemClicked(KviTalListViewItem * it)
{
if(!it)return;
if(!it->parent())return;
@@ -197,7 +197,7 @@ void KviChannelsJoinWindow::itemClicked(QListViewItem * it)
enableJoin();
}
-void KviChannelsJoinWindow::itemDoubleClicked(QListViewItem * it)
+void KviChannelsJoinWindow::itemDoubleClicked(KviTalListViewItem * it)
{
if(!it)return;
if(!it->parent())return;
@@ -268,7 +268,7 @@ void KviChannelsJoinWindow::namesClicked()
if(!tmp.isEmpty())doCmd("raw names", tmp.ptr());
}
-void KviChannelsJoinWindow::itemDoubleClicked(QListBoxItem * it)
+void KviChannelsJoinWindow::itemDoubleClicked(KviTalListBoxItem * it)
{
if (it == 0)return;
KviStr tmp = it->text();