summaryrefslogtreecommitdiffstats
path: root/src/modules/list
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-24 21:28:39 +0900
committerMichele Calgaro <[email protected]>2023-08-31 16:31:47 +0900
commit7c3b44b81086c6b99f91e294c3b438dc808b47e2 (patch)
treed92d61649487df1a2fbd200d4ead11a7f16ba63f /src/modules/list
parentcafbffba66b6ce809783ed1eb4d24aac6fe9701f (diff)
downloadkvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.tar.gz
kvirc-7c3b44b81086c6b99f91e294c3b438dc808b47e2.zip
Drop USE_QT4 code
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 030a2248f3630fd0404df98beffc78b5b5ca4c31)
Diffstat (limited to 'src/modules/list')
-rw-r--r--src/modules/list/listwindow.cpp9
-rw-r--r--src/modules/list/listwindow.h4
2 files changed, 0 insertions, 13 deletions
diff --git a/src/modules/list/listwindow.cpp b/src/modules/list/listwindow.cpp
index ec6663a1..e9d3e74d 100644
--- a/src/modules/list/listwindow.cpp
+++ b/src/modules/list/listwindow.cpp
@@ -86,11 +86,7 @@ KviChannelListViewItem::~KviChannelListViewItem()
{
delete m_pData;
}
-#ifdef COMPILE_USE_QT4
-int KviChannelListViewItem::width ( const TQFontMetrics & fm, const KviTalListView * lv, int column ) const
-#else
int KviChannelListViewItem::width ( const TQFontMetrics & fm, const TQListView * lv, int column ) const
-#endif
{
tqDebug("width request");
TQString szText;
@@ -123,14 +119,9 @@ void KviChannelListViewItem::paintCell(TQPainter * p,const TQColorGroup &cg,int
int marg = lv->itemMargin();
int r = marg;
-#ifdef COMPILE_USE_QT4
-
- p->fillRect( 0, 0, width, height(), cg.brush(lv->viewport()->backgroundRole()) );
-#else
const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode(lv->viewport()->backgroundMode());
p->fillRect( 0, 0, width, height(), cg.brush( crole ) );
-#endif
if ( isSelected() &&
(column == 0 || lv->allColumnsShowFocus()) ) {
diff --git a/src/modules/list/listwindow.h b/src/modules/list/listwindow.h
index 6d0abea9..3b93b15c 100644
--- a/src/modules/list/listwindow.h
+++ b/src/modules/list/listwindow.h
@@ -63,11 +63,7 @@ protected:
KviChannelListViewItemData * m_pData;
public:
const TQString & channel(){ return m_pData->m_szChan; };
-#ifdef COMPILE_USE_QT4
- int width ( const TQFontMetrics & fm, const KviTalListView * lv, int column ) const;
-#else
int width ( const TQFontMetrics & fm, const TQListView * lv, int column ) const;
-#endif
protected:
virtual void paintCell(TQPainter * p,const TQColorGroup &cg,int col,int wdth,int align);
virtual TQString key(int col,bool) const;