diff options
Diffstat (limited to 'src/tastylistview.cpp')
-rw-r--r-- | src/tastylistview.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/tastylistview.cpp b/src/tastylistview.cpp index 30d98a8..cb6d629 100644 --- a/src/tastylistview.cpp +++ b/src/tastylistview.cpp @@ -22,18 +22,18 @@ #include "tastylistview.h" #include "misc.h" -#include <kdeversion.h> +#include <tdeversion.h> #include <kstringhandler.h> #include <tqimage.h> #include <tqpainter.h> #include <tqheader.h> -#include <klocale.h> +#include <tdelocale.h> #include <kurldrag.h> #include <tqapplication.h> TastyListView::TastyListView( TQWidget * parent, const char * name) - : KListView(parent, name), highLightGroups(true), easyOpen(true) + : TDEListView(parent, name), highLightGroups(true), easyOpen(true) { onItemTimer = new TQTimer(this, "onItemTimer"); @@ -101,12 +101,12 @@ void TastyListView::contentsMouseReleaseEvent( TQMouseEvent * e ) oldOpenItem->repaint(); } - KListView::contentsMouseReleaseEvent(e); + TDEListView::contentsMouseReleaseEvent(e); } void TastyListView::contentsMouseMoveEvent( TQMouseEvent * e ) { - KListView::contentsMouseMoveEvent(e); + TDEListView::contentsMouseMoveEvent(e); mouseDown = (e->state() & TQt::LeftButton); if( itemAt( contentsToViewport(TQPoint(e->x(), e->y()))) == 0 ) @@ -115,7 +115,7 @@ void TastyListView::contentsMouseMoveEvent( TQMouseEvent * e ) void TastyListView::leaveEvent( TQEvent * e ) { - KListView::leaveEvent( e ); + TDEListView::leaveEvent( e ); onItemTimer->stop(); if( openItem ) setCurrentItem( openItem ); @@ -154,7 +154,7 @@ void TastyListView::keyPressEvent( TQKeyEvent * e ) case TQt::Key_Up: case TQt::Key_Down: - KListView::keyPressEvent( e ); + TDEListView::keyPressEvent( e ); break; case TQt::Key_Right: @@ -204,7 +204,7 @@ void TastyListView::keyPressEvent( TQKeyEvent * e ) break; } case TQt::Key_Tab: - KListView::keyPressEvent( e ); + TDEListView::keyPressEvent( e ); break; default: @@ -323,27 +323,27 @@ void TastyListViewToolTip::maybeTip( const TQPoint &pos ) ///////////TASTYLISTVIEWITEM TastyListViewItem::TastyListViewItem( TastyListView * parent ) - : KListViewItem(parent) + : TDEListViewItem(parent) {commonConstructor();} TastyListViewItem::TastyListViewItem( TastyListViewItem * parent ) - : KListViewItem(parent) + : TDEListViewItem(parent) {commonConstructor();} TastyListViewItem::TastyListViewItem( TastyListView * parent, TastyListViewItem * after, TQString label1 ) - : KListViewItem(parent, after, label1) + : TDEListViewItem(parent, after, label1) {commonConstructor();cellText = label1;} TastyListViewItem::TastyListViewItem( TastyListViewItem * parent, TastyListViewItem * after, TQString label1 ) - : KListViewItem(parent, after, label1) + : TDEListViewItem(parent, after, label1) {commonConstructor();cellText = label1;} TastyListViewItem::TastyListViewItem( TastyListView * parent, TQString label1 ) - : KListViewItem(parent, label1) + : TDEListViewItem(parent, label1) {commonConstructor();cellText = label1;} TastyListViewItem::TastyListViewItem( TastyListViewItem * parent, TQString label1 ) - : KListViewItem(parent, label1) + : TDEListViewItem(parent, label1) {commonConstructor();cellText = label1;} TastyListViewItem::~TastyListViewItem() @@ -372,7 +372,7 @@ void TastyListViewItem::commonConstructor() void TastyListViewItem::loadPixmap() { TQString iconFile = ""; - iconLoader = KGlobal::iconLoader(); + iconLoader = TDEGlobal::iconLoader(); if( !listView() ) return; @@ -384,26 +384,26 @@ void TastyListViewItem::loadPixmap() switch( actionType ) { case AddBookMark: - actionPix = iconLoader->loadIcon("bookmark_add", KIcon::Small, lv->getActionIconSize()); + actionPix = iconLoader->loadIcon("bookmark_add", TDEIcon::Small, lv->getActionIconSize()); break; case RemoveBookMark: - actionPix = iconLoader->loadIcon("remove", KIcon::Small, lv->getActionIconSize()); + actionPix = iconLoader->loadIcon("remove", TDEIcon::Small, lv->getActionIconSize()); break; case OpenGroup: if( TQApplication::reverseLayout() ) - actionPix = iconLoader->loadIcon("1leftarrow", KIcon::Small, lv->getActionIconSize()); + actionPix = iconLoader->loadIcon("1leftarrow", TDEIcon::Small, lv->getActionIconSize()); else - actionPix = iconLoader->loadIcon("1rightarrow", KIcon::Small, lv->getActionIconSize()); + actionPix = iconLoader->loadIcon("1rightarrow", TDEIcon::Small, lv->getActionIconSize()); break; case Expand: - actionPix = iconLoader->loadIcon("1downarrow", KIcon::Small, lv->getActionIconSize()); + actionPix = iconLoader->loadIcon("1downarrow", TDEIcon::Small, lv->getActionIconSize()); break; case Collapse: - actionPix = iconLoader->loadIcon("1uparrow", KIcon::Small, lv->getActionIconSize()); + actionPix = iconLoader->loadIcon("1uparrow", TDEIcon::Small, lv->getActionIconSize()); break; default: @@ -437,7 +437,7 @@ TQString TastyListViewItem::key( int column, bool ascending ) const void TastyListViewItem::setup ( ) { - //KListViewItem::setup(); + //TDEListViewItem::setup(); //calculate listitem height TQFontMetrics fm( listView()->font() ); @@ -466,7 +466,7 @@ void TastyListViewItem::paintCell ( TQPainter * p, const TQColorGroup & cg, int TQColor fillColor, textColor; -# if KDE_VERSION < KDE_MAKE_VERSION(3,3,91) +# if TDE_VERSION < TDE_MAKE_VERSION(3,3,91) # define BackgroundColor backgroundColor() # else # define BackgroundColor backgroundColor(0) |