diff options
Diffstat (limited to 'parts/fileview/fileitemfactory.cpp')
-rw-r--r-- | parts/fileview/fileitemfactory.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/parts/fileview/fileitemfactory.cpp b/parts/fileview/fileitemfactory.cpp index 614f535c..3ccf5921 100644 --- a/parts/fileview/fileitemfactory.cpp +++ b/parts/fileview/fileitemfactory.cpp @@ -9,7 +9,7 @@ * * ***************************************************************************/ -#include <qpainter.h> +#include <tqpainter.h> #include <kdebug.h> #include "filetreewidget.h" @@ -23,7 +23,7 @@ using namespace filetreeview; FileTreeWidget* FileTreeViewItem::listView() const { - return static_cast<FileTreeWidget*>( QListViewItem::listView() ); + return static_cast<FileTreeWidget*>( TQListViewItem::listView() ); } /////////////////////////////////////////////////////////////////////////////// @@ -41,7 +41,7 @@ void FileTreeViewItem::hideOrShow() } } -bool FileTreeViewItem::changeActiveDir( const QString& olddir, const QString& newdir, bool foundolddir, bool foundnewdir ) +bool FileTreeViewItem::changeActiveDir( const TQString& olddir, const TQString& newdir, bool foundolddir, bool foundnewdir ) { kdDebug( 9017 ) << "FileTreeViewItem::changeActiveDir(): " + olddir << " new: " << newdir << " for: " << path() << endl; @@ -77,7 +77,7 @@ bool FileTreeViewItem::changeActiveDir( const QString& olddir, const QString& ne /////////////////////////////////////////////////////////////////////////////// -bool FileTreeViewItem::setProjectFile( QString const & path, bool pf ) +bool FileTreeViewItem::setProjectFile( TQString const & path, bool pf ) { if ( this->path() == path && isProjectFile() != pf ) @@ -102,30 +102,30 @@ bool FileTreeViewItem::setProjectFile( QString const & path, bool pf ) /////////////////////////////////////////////////////////////////////////////// -void FileTreeViewItem::paintCell(QPainter *p, const QColorGroup &cg, +void FileTreeViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) { if ( listView()->showNonProjectFiles() && isProjectFile() ) { - QFont font( p->font() ); + TQFont font( p->font() ); font.setBold( true ); p->setFont( font ); } if( isActiveDir() ) { - QFont font( p->font() ); + TQFont font( p->font() ); font.setItalic( true ); p->setFont( font ); } - QListViewItem::paintCell( p, cg, column, width, alignment ); + TQListViewItem::paintCell( p, cg, column, width, alignment ); } /////////////////////////////////////////////////////////////////////////////// -int FileTreeViewItem::compare( QListViewItem *i, int col, bool ascending ) const +int FileTreeViewItem::compare( TQListViewItem *i, int col, bool ascending ) const { KFileTreeViewItem* rhs = dynamic_cast<KFileTreeViewItem*>( i ); if (rhs) @@ -137,7 +137,7 @@ int FileTreeViewItem::compare( QListViewItem *i, int col, bool ascending ) const return (ascending) ? -1 : 1; } - return QListViewItem::compare( i, col, ascending ); + return TQListViewItem::compare( i, col, ascending ); } /////////////////////////////////////////////////////////////////////////////// |