summaryrefslogtreecommitdiffstats
path: root/src/tastylistview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tastylistview.h')
-rw-r--r--src/tastylistview.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tastylistview.h b/src/tastylistview.h
index 47917d7..fcc77b3 100644
--- a/src/tastylistview.h
+++ b/src/tastylistview.h
@@ -22,7 +22,7 @@
#ifndef TASTYLISTVIEW_H
#define TASTYLISTVIEW_H
-#include <klistview.h>
+#include <tdelistview.h>
#include <kiconloader.h>
#include <kservice.h>
#include <kservicegroup.h>
@@ -53,7 +53,7 @@ class TastyListViewToolTip: public TQToolTip
/**
@author Marco Martin <[email protected]>
*/
-class TastyListView : public KListView
+class TastyListView : public TDEListView
{
Q_OBJECT
private:
@@ -88,7 +88,7 @@ public:
void setOpenItem( TQListViewItem * listItem ){openItem = listItem;}
public slots:
- virtual void clear(){openItem = underCursorItem = NULL; KListView::clear();}
+ virtual void clear(){openItem = underCursorItem = NULL; TDEListView::clear();}
protected:
@@ -112,7 +112,7 @@ signals:
/**
@author Marco Martin <[email protected]>
*/
-class TastyListViewItem : public KListViewItem
+class TastyListViewItem : public TDEListViewItem
{
//Q_OBJECT
friend class TastyListView;
@@ -174,10 +174,10 @@ friend class TastyListView;
x < lv->header()->sectionPos( lv->header()->mapToIndex( 0 ) ) );}
void setSubText(TQString text) //FIXME: add the column
- {if(cellText.isEmpty())cellText=KListViewItem::text(0);
- KListViewItem::setText(0,cellText+text);subText = TQString(text);}
+ {if(cellText.isEmpty())cellText=TDEListViewItem::text(0);
+ TDEListViewItem::setText(0,cellText+text);subText = TQString(text);}
void setText(int column, const TQString & text )
- {KListViewItem::setText(column, cellText+text); cellText = text;}
+ {TDEListViewItem::setText(column, cellText+text); cellText = text;}
void setDisplaySubText( bool display ){ displaySubText = display; }
bool hasEllipsis(){return ellipsis;}
@@ -192,9 +192,9 @@ friend class TastyListView;
int width( const TQFontMetrics & fm, const TQListView * lv, int c )
{ TastyListView *tlv = dynamic_cast<TastyListView *>( listView() );
if( tlv )
- return KListViewItem::width(fm, lv, c) + tlv->getActionIconSpace();
+ return TDEListViewItem::width(fm, lv, c) + tlv->getActionIconSpace();
else
- return KListViewItem::width(fm, lv, c);
+ return TDEListViewItem::width(fm, lv, c);
}
protected:
@@ -214,7 +214,7 @@ private:
bool highLight;
bool displaySubText;
TQPixmap actionPix;
- KIconLoader *iconLoader;
+ TDEIconLoader *iconLoader;
void commonConstructor();
//a tiny reimplementation of max...