summaryrefslogtreecommitdiffstats
path: root/kommander/editor/listvieweditorimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor/listvieweditorimpl.cpp')
-rw-r--r--kommander/editor/listvieweditorimpl.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kommander/editor/listvieweditorimpl.cpp b/kommander/editor/listvieweditorimpl.cpp
index fb2f0a6a..abed8458 100644
--- a/kommander/editor/listvieweditorimpl.cpp
+++ b/kommander/editor/listvieweditorimpl.cpp
@@ -1,7 +1,7 @@
/**********************************************************************
** Copyright (C) 2000 Trolltech AS. All rights reserved.
**
-** This file is part of Qt Designer.
+** This file is part of TQt Designer.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
@@ -37,8 +37,8 @@
#include <klocale.h>
-ListViewEditor::ListViewEditor( TQWidget *parent, TQListView *lv, FormWindow *fw )
- : ListViewEditorBase( parent, 0, true ), listview( lv ), formwindow( fw )
+ListViewEditor::ListViewEditor( TQWidget *tqparent, TQListView *lv, FormWindow *fw )
+ : ListViewEditorBase( tqparent, 0, true ), listview( lv ), formwindow( fw )
{
connect( helpButton, TQT_SIGNAL( clicked() ), MainWindow::self, TQT_SLOT( showDialogHelp() ) );
itemText->setEnabled( false );
@@ -63,7 +63,7 @@ ListViewEditor::ListViewEditor( TQWidget *parent, TQListView *lv, FormWindow *fw
void ListViewEditor::applyClicked()
{
setupItems();
- PopulateListViewCommand *cmd = new PopulateListViewCommand( i18n("Edit Items and Columns of '%1'" ).arg( listview->name() ),
+ PopulateListViewCommand *cmd = new PopulateListViewCommand( i18n("Edit Items and Columns of '%1'" ).tqarg( listview->name() ),
formwindow, listview, itemsPreview );
cmd->execute();
formwindow->commandHistory()->addCommand( cmd );
@@ -321,10 +321,10 @@ void ListViewEditor::itemDownClicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *parent = i->parent();
+ TQListViewItem *tqparent = i->tqparent();
it++;
while ( it.current() ) {
- if ( it.current()->parent() == parent )
+ if ( it.current()->tqparent() == tqparent )
break;
it++;
}
@@ -346,11 +346,11 @@ void ListViewEditor::itemNewClicked()
void ListViewEditor::itemNewSubClicked()
{
- TQListViewItem *parent = itemsPreview->currentItem();
+ TQListViewItem *tqparent = itemsPreview->currentItem();
TQListViewItem *item = 0;
- if ( parent ) {
- item = new TQListViewItem( parent );
- parent->setOpen( true );
+ if ( tqparent ) {
+ item = new TQListViewItem( tqparent );
+ tqparent->setOpen( true );
} else {
item = new TQListViewItem( itemsPreview );
}
@@ -405,10 +405,10 @@ void ListViewEditor::itemUpClicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *parent = i->parent();
+ TQListViewItem *tqparent = i->tqparent();
--it;
while ( it.current() ) {
- if ( it.current()->parent() == parent )
+ if ( it.current()->tqparent() == tqparent )
break;
--it;
}
@@ -427,13 +427,13 @@ void ListViewEditor::itemRightClicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *parent = i->parent();
- parent = parent ? parent->firstChild() : itemsPreview->firstChild();
- if ( !parent )
+ TQListViewItem *tqparent = i->tqparent();
+ tqparent = tqparent ? tqparent->firstChild() : itemsPreview->firstChild();
+ if ( !tqparent )
return;
it++;
while ( it.current() ) {
- if ( it.current()->parent() == parent )
+ if ( it.current()->tqparent() == tqparent )
break;
it++;
}
@@ -467,13 +467,13 @@ void ListViewEditor::itemLeftClicked()
return;
TQListViewItemIterator it( i );
- TQListViewItem *parent = i->parent();
- if ( !parent )
+ TQListViewItem *tqparent = i->tqparent();
+ if ( !tqparent )
return;
- parent = parent->parent();
+ tqparent = tqparent->tqparent();
--it;
while ( it.current() ) {
- if ( it.current()->parent() == parent )
+ if ( it.current()->tqparent() == tqparent )
break;
--it;
}
@@ -531,7 +531,7 @@ void ListViewEditor::setupColumns()
void ListViewEditor::setupItems()
{
itemColumn->setMinValue( 0 );
- itemColumn->setMaxValue( QMAX( numColumns - 1, 0 ) );
+ itemColumn->setMaxValue( TQMAX( numColumns - 1, 0 ) );
int i = 0;
TQHeader *header = itemsPreview->header();
for ( TQListBoxItem *item = colPreview->firstItem(); item; item = item->next() ) {
@@ -548,7 +548,7 @@ void ListViewEditor::setupItems()
while ( itemsPreview->columns() > i )
itemsPreview->removeColumn( i );
- itemColumn->setValue( QMIN( numColumns - 1, itemColumn->value() ) );
+ itemColumn->setValue( TQMIN( numColumns - 1, itemColumn->value() ) );
}
ListViewEditor::Column *ListViewEditor::findColumn( TQListBoxItem *i )