summaryrefslogtreecommitdiffstats
path: root/parts/filelist/filelist_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/filelist/filelist_item.cpp')
-rw-r--r--parts/filelist/filelist_item.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/parts/filelist/filelist_item.cpp b/parts/filelist/filelist_item.cpp
index d528cc2c..07817479 100644
--- a/parts/filelist/filelist_item.cpp
+++ b/parts/filelist/filelist_item.cpp
@@ -10,8 +10,8 @@
***************************************************************************/
#include <kiconloader.h>
-#include <qfontmetrics.h>
-#include <qfileinfo.h>
+#include <tqfontmetrics.h>
+#include <tqfileinfo.h>
#include "filelist_item.h"
@@ -20,8 +20,8 @@
FileListItem * FileListItem::s_activeItem = 0;
-FileListItem::FileListItem( QListView * parent, KURL const & url, DocumentState state )
- : QListViewItem( parent, url.fileName() ),
+FileListItem::FileListItem( TQListView * parent, KURL const & url, DocumentState state )
+ : TQListViewItem( parent, url.fileName() ),
_url( url )
{
@@ -64,19 +64,19 @@ void FileListItem::setState( DocumentState state )
void FileListItem::setHeight( int )
{
- QListViewItem::setHeight( KIcon::SizeSmall > listView()->fontMetrics().height() ? KIcon::SizeSmall : listView()->fontMetrics().height() );
+ TQListViewItem::setHeight( KIcon::SizeSmall > listView()->fontMetrics().height() ? KIcon::SizeSmall : listView()->fontMetrics().height() );
}
-void FileListItem::paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align )
+void FileListItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align )
{
- QColorGroup mcg = cg;
+ TQColorGroup mcg = cg;
if ( isActive() )
{
- mcg.setColor( QColorGroup::Base, Qt::yellow );
+ mcg.setColor( TQColorGroup::Base, Qt::yellow );
}
- QListViewItem::paintCell( p, mcg, column, width, align );
+ TQListViewItem::paintCell( p, mcg, column, width, align );
}
bool FileListItem::isActive( )
@@ -90,10 +90,10 @@ void FileListItem::setActive( FileListItem * item )
s_activeItem = item;
}
-int FileListItem::compare( QListViewItem * i, int col, bool ascending ) const
+int FileListItem::compare( TQListViewItem * i, int col, bool ascending ) const
{
- QFileInfo info1( key( col, ascending ) ); //this
- QFileInfo info2( i->key( col, ascending ) ); //that
+ TQFileInfo info1( key( col, ascending ) ); //this
+ TQFileInfo info2( i->key( col, ascending ) ); //that
int fileComp = info1.fileName().compare( info2.fileName() );
if ( fileComp != 0 )
return fileComp;