aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/list/listwindow.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/list/listwindow.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/list/listwindow.cpp')
-rw-r--r--src/modules/list/listwindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/list/listwindow.cpp b/src/modules/list/listwindow.cpp
index 32d0be5d9..81254e647 100644
--- a/src/modules/list/listwindow.cpp
+++ b/src/modules/list/listwindow.cpp
@@ -69,8 +69,8 @@ KviChannelListViewItemData::~KviChannelListViewItemData()
-KviChannelListViewItem::KviChannelListViewItem(QListView * v,KviChannelListViewItemData * pData)
-: QListViewItem(v)
+KviChannelListViewItem::KviChannelListViewItem(KviTalListView * v,KviChannelListViewItemData * pData)
+: KviTalListViewItem(v)
{
m_pData = pData;
}
@@ -81,7 +81,7 @@ KviChannelListViewItem::~KviChannelListViewItem()
delete m_pData;
}
-int KviChannelListViewItem::width ( const QFontMetrics & fm, const QListView * lv, int column ) const
+int KviChannelListViewItem::width ( const QFontMetrics & fm, const KviTalListView * lv, int column ) const
{
QString szText;
@@ -109,7 +109,7 @@ void KviChannelListViewItem::paintCell(QPainter * p,const QColorGroup &cg,int co
default: szText = m_pData->m_szTopic; break;
}
- QListView* lv = listView();
+ KviTalListView* lv = (KviTalListView *)listView();
int marg = lv->itemMargin();
int r = marg;
@@ -194,14 +194,14 @@ KviListWindow::KviListWindow(KviFrame * lpFrm,KviConsole * lpConsole)
m_pInfoLabel = new KviThemedLabel(m_pTopSplitter,"info_label");
- m_pListView = new QListView(m_pVertSplitter);
+ m_pListView = new KviTalListView(m_pVertSplitter);
m_pListView->addColumn(__tr2qs("Channel"));
m_pListView->addColumn(__tr2qs("Users"));
m_pListView->addColumn(__tr2qs("Topic"));
m_pListView->setAllColumnsShowFocus(TRUE);
m_pListView->setSorting(100);
- connect(m_pListView,SIGNAL(doubleClicked(QListViewItem *)),this,SLOT(itemDoubleClicked(QListViewItem *)));
+ connect(m_pListView,SIGNAL(doubleClicked(KviTalListViewItem *)),this,SLOT(itemDoubleClicked(KviTalListViewItem *)));
m_pIrcView = new KviIrcView(m_pVertSplitter,lpFrm,this);
@@ -388,7 +388,7 @@ void KviListWindow::flush()
m_pListView->viewport()->update();
}
-void KviListWindow::itemDoubleClicked(QListViewItem *it)
+void KviListWindow::itemDoubleClicked(KviTalListViewItem *it)
{
QString sz = ((KviChannelListViewItem *)it)->channel();
if(sz.isEmpty())return;