summaryrefslogtreecommitdiffstats
path: root/parts/filelist/filelist_item.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/filelist/filelist_item.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;