From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- parts/tools/kapplicationtree.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'parts/tools/kapplicationtree.cpp') diff --git a/parts/tools/kapplicationtree.cpp b/parts/tools/kapplicationtree.cpp index c6517d8f..95400863 100644 --- a/parts/tools/kapplicationtree.cpp +++ b/parts/tools/kapplicationtree.cpp @@ -65,9 +65,9 @@ template class TQPtrList; // ---------------------------------------------------------------------- -KDevAppTreeListItem::KDevAppTreeListItem( KListView* parent, const TQString & name, +KDevAppTreeListItem::KDevAppTreeListItem( KListView* tqparent, const TQString & name, const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE ) - : TQListViewItem( parent, name ) + : TQListViewItem( tqparent, name ) { init(pixmap, parse, dir, p, c, dE); } @@ -75,9 +75,9 @@ KDevAppTreeListItem::KDevAppTreeListItem( KListView* parent, const TQString & na // ---------------------------------------------------------------------- -KDevAppTreeListItem::KDevAppTreeListItem( TQListViewItem* parent, const TQString & name, +KDevAppTreeListItem::KDevAppTreeListItem( TQListViewItem* tqparent, const TQString & name, const TQPixmap& pixmap, bool parse, bool dir, const TQString& p, const TQString& c, const TQString& dE ) - : TQListViewItem( parent, name ) + : TQListViewItem( tqparent, name ) { init(pixmap, parse, dir, p, c, dE); } @@ -94,7 +94,7 @@ void KDevAppTreeListItem::init(const TQPixmap& pixmap, bool parse, bool dir, con exec = _exec; dEntry = _dEntry; exec.simplifyWhiteSpace(); - exec.truncate(exec.find(' ')); + exec.truncate(exec.tqfind(' ')); } @@ -104,7 +104,7 @@ void KDevAppTreeListItem::init(const TQPixmap& pixmap, bool parse, bool dir, con TQString KDevAppTreeListItem::key(int column, bool /*ascending*/) const { if (directory) - return TQString::fromLatin1(" ") + text(column).upper(); + return TQString::tqfromLatin1(" ") + text(column).upper(); else return text(column).upper(); } @@ -117,8 +117,8 @@ void KDevAppTreeListItem::activate() void KDevAppTreeListItem::setOpen( bool o ) { - if( o && !parsed ) { // fill the children before opening - ((KDevApplicationTree *) parent())->addDesktopGroup( path, this ); + if( o && !parsed ) { // fill the tqchildren before opening + ((KDevApplicationTree *) tqparent())->addDesktopGroup( path, this ); parsed = true; } TQListViewItem::setOpen( o ); @@ -131,13 +131,13 @@ bool KDevAppTreeListItem::isDirectory() // ---------------------------------------------------------------------- -KDevApplicationTree::KDevApplicationTree( TQWidget *parent, const char* name ) - : KListView( parent, name ), currentitem(0) +KDevApplicationTree::KDevApplicationTree( TQWidget *tqparent, const char* name ) + : KListView( tqparent, name ), currentitem(0) { addColumn( i18n("Known Applications") ); setRootIsDecorated( true ); - addDesktopGroup( TQString::null ); + addDesktopGroup( TQString() ); connect( this, TQT_SIGNAL( currentChanged(TQListViewItem*) ), TQT_SLOT( slotItemHighlighted(TQListViewItem*) ) ); connect( this, TQT_SIGNAL( selectionChanged(TQListViewItem*) ), TQT_SLOT( slotSelectionChanged(TQListViewItem*) ) ); @@ -248,7 +248,7 @@ void KDevApplicationTree::slotSelectionChanged(TQListViewItem* i) void KDevApplicationTree::resizeEvent( TQResizeEvent * e) { - setColumnWidth(0, width()-TQApplication::style().pixelMetric(TQStyle::PM_ScrollBarExtent)); + setColumnWidth(0, width()-TQApplication::tqstyle().tqpixelMetric(TQStyle::PM_ScrollBarExtent)); KListView::resizeEvent(e); } -- cgit v1.2.1