summaryrefslogtreecommitdiffstats
path: root/parts/fileview/fileitemfactory.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/fileview/fileitemfactory.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/fileview/fileitemfactory.cpp')
-rw-r--r--parts/fileview/fileitemfactory.cpp20
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 );
}
///////////////////////////////////////////////////////////////////////////////