summaryrefslogtreecommitdiffstats
path: root/parts/tools/kapplicationtree.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /parts/tools/kapplicationtree.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
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
Diffstat (limited to 'parts/tools/kapplicationtree.cpp')
-rw-r--r--parts/tools/kapplicationtree.cpp24
1 files changed, 12 insertions, 12 deletions
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<TQString>;
// ----------------------------------------------------------------------
-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);
}