summaryrefslogtreecommitdiffstats
path: root/parts/tools/kapplicationtree.cpp
diff options
context:
space:
mode:
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);
}