aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/channelsjoin/channelsjoinwindow.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-10-18 17:40:24 +0000
committerGravatar Fabio Bas2008-10-18 17:40:24 +0000
commit03fbd0f8e33ddf740cc7741ff6c02f552ad7197b (patch)
tree54f22a6ba15d7d9eb3b895c6e4fc09f4978d573f /src/modules/channelsjoin/channelsjoinwindow.cpp
parentapplied patch for FreeBsd compilation by THeLoox (diff)
downloadKVIrc-03fbd0f8e33ddf740cc7741ff6c02f552ad7197b.tar.gz
KVIrc-03fbd0f8e33ddf740cc7741ff6c02f552ad7197b.tar.bz2
KVIrc-03fbd0f8e33ddf740cc7741ff6c02f552ad7197b.zip
removed some helper structs used for qt4/qt3 compatibility
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2758 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/channelsjoin/channelsjoinwindow.cpp')
-rw-r--r--src/modules/channelsjoin/channelsjoinwindow.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/modules/channelsjoin/channelsjoinwindow.cpp b/src/modules/channelsjoin/channelsjoinwindow.cpp
index cd22fdfad..4e514480f 100644
--- a/src/modules/channelsjoin/channelsjoinwindow.cpp
+++ b/src/modules/channelsjoin/channelsjoinwindow.cpp
@@ -64,7 +64,7 @@ KviChannelsJoinWindow::KviChannelsJoinWindow(QWidget * par, const char * name)
QGridLayout * g = new QGridLayout(this);
m_pTreeWidget = new KviTalTreeWidget(this);
- m_pTreeWidget->addColumn(__tr2qs("Channel"));
+ m_pTreeWidget->setHeaderLabel(__tr2qs("Channel"));
m_pTreeWidget->setRootIsDecorated(true);
m_pTreeWidget->setSelectionMode(QAbstractItemView::SingleSelection);
g->addWidget(m_pTreeWidget,0,0,1,2);
@@ -161,7 +161,8 @@ void KviChannelsJoinWindow::fillListView()
m_pTreeWidget->header()->hide();
- KviTalTreeWidgetItem * par = new KviTalTreeWidgetItem(m_pTreeWidget,__tr2qs("Recent Channels"));
+ KviTalTreeWidgetItem * par = new KviTalTreeWidgetItem(m_pTreeWidget);
+ par->setText(0,__tr2qs("Recent Channels"));
par->setExpanded(true);
KviTalTreeWidgetItem * chld;
@@ -172,13 +173,15 @@ void KviChannelsJoinWindow::fillListView()
{
for(QStringList::Iterator it = pList->begin(); it != pList->end(); ++it)
{
- chld = new KviTalTreeWidgetItem(par,*it);
+ chld = new KviTalTreeWidgetItem(par);
+ chld->setText(0,*it);
chld->setIcon(0,*(g_pIconManager->getSmallIcon(KVI_SMALLICON_CHANNEL)));
}
}
}
- par = new KviTalTreeWidgetItem(m_pTreeWidget,__tr2qs("Registered Channels"));
+ par = new KviTalTreeWidgetItem(m_pTreeWidget);
+ par->setText(0,__tr2qs("Registered Channels"));
par->setExpanded(true);
KviPointerHashTable<const char *,KviRegisteredChannelList> * d = g_pRegisteredChannelDataBase->channelDict();
@@ -187,7 +190,8 @@ void KviChannelsJoinWindow::fillListView()
KviPointerHashTableIterator<const char *,KviRegisteredChannelList> it(*d);
while(it.current())
{
- chld = new KviTalTreeWidgetItem(par,it.currentKey());
+ chld = new KviTalTreeWidgetItem(par);
+ chld->setText(0,it.currentKey());
chld->setIcon(0,*(g_pIconManager->getSmallIcon(KVI_SMALLICON_CHANNEL)));
++it;
}