summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/cmdedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/commonui/cmdedit.cpp')
-rw-r--r--kbabel/commonui/cmdedit.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kbabel/commonui/cmdedit.cpp b/kbabel/commonui/cmdedit.cpp
index 07a35c2f..f0da9701 100644
--- a/kbabel/commonui/cmdedit.cpp
+++ b/kbabel/commonui/cmdedit.cpp
@@ -20,11 +20,11 @@
In addition, as a special exception, the copyright holders give
permission to link the code of this program with any edition of
- the Qt library by Trolltech AS, Norway (or with modified versions
- of Qt that use the same license as Qt), and distribute linked
+ the TQt library by Trolltech AS, Norway (or with modified versions
+ of TQt that use the same license as TQt), and distribute linked
combinations including the two. You must obey the GNU General
Public License in all respects for all of the code used other than
- Qt. If you modify this file, you may extend this exception to
+ TQt. If you modify this file, you may extend this exception to
your version of the file, but you are not obligated to do so. If
you do not wish to do so, delete this exception statement from
your version.
@@ -42,41 +42,41 @@
#include <kdialog.h>
-CmdEdit::CmdEdit(TQWidget* parent, const char* name)
- : TQWidget(parent,name)
+CmdEdit::CmdEdit(TQWidget* tqparent, const char* name)
+ : TQWidget(tqparent,name)
{
- TQGridLayout* layout = new TQGridLayout( this , 1 , 1 );
- layout->setSpacing( KDialog::spacingHint() );
+ TQGridLayout* tqlayout = new TQGridLayout( this , 1 , 1 );
+ tqlayout->setSpacing( KDialog::spacingHint() );
TQLabel* nameLabel = new TQLabel( i18n("Command &Label:"), this);
TQLabel* cmdLabel = new TQLabel( i18n("Co&mmand:"), this);
- layout->addWidget( nameLabel, 0 , 0 );
- layout->addWidget( cmdLabel, 0 , 1 );
+ tqlayout->addWidget( nameLabel, 0 , 0 );
+ tqlayout->addWidget( cmdLabel, 0 , 1 );
_cmdNameEdit = new TQLineEdit( this , "cmdNameEdit" );
_cmdNameEdit->setMaxLength(20);
nameLabel->setBuddy(_cmdNameEdit);
- layout->addWidget( _cmdNameEdit , 1 , 0 );
+ tqlayout->addWidget( _cmdNameEdit , 1 , 0 );
_cmdEdit = new TQLineEdit( this , "cmdEdit" );
cmdLabel->setBuddy(_cmdEdit);
- layout->addWidget( _cmdEdit , 1 , 1 );
+ tqlayout->addWidget( _cmdEdit , 1 , 1 );
_addButton = new TQPushButton( i18n("&Add"), this );
_addButton->setEnabled(false);
- layout->addWidget( _addButton , 1 , 2 );
+ tqlayout->addWidget( _addButton , 1 , 2 );
_editButton = new TQPushButton( i18n("&Edit"), this );
_editButton->setEnabled(false);
- layout->addWidget( _editButton , 3 , 2 );
+ tqlayout->addWidget( _editButton , 3 , 2 );
_removeButton = new TQPushButton( i18n("&Remove"), this );
_removeButton->setEnabled(false);
- layout->addWidget( _removeButton , 4 , 2 );
+ tqlayout->addWidget( _removeButton , 4 , 2 );
TQHBoxLayout* hbox = new TQHBoxLayout();
- layout->addLayout(hbox,5,2);
+ tqlayout->addLayout(hbox,5,2);
_upButton = new TQToolButton(UpArrow,this);
_upButton->setFixedSize(20,20);
@@ -90,21 +90,21 @@ CmdEdit::CmdEdit(TQWidget* parent, const char* name)
_commandNames = new TQListBox( this , "commandNamesBox" );
_commandNames->setMinimumSize(100, 100);
- layout->addMultiCellWidget( _commandNames , 3 , 6 , 0 , 0);
+ tqlayout->addMultiCellWidget( _commandNames , 3 , 6 , 0 , 0);
_commands = new TQListBox( this , "commandsBox" );
_commands->setMinimumSize(160, 100);
- layout->addMultiCellWidget( _commands , 3 , 6 , 1 ,1 );
+ tqlayout->addMultiCellWidget( _commands , 3 , 6 , 1 ,1 );
- layout->setColStretch(0,1);
- layout->setColStretch(1,2);
- layout->setColStretch(2,0);
+ tqlayout->setColStretch(0,1);
+ tqlayout->setColStretch(1,2);
+ tqlayout->setColStretch(2,0);
- layout->addRowSpacing(2, KDialog::spacingHint());
- layout->addRowSpacing(6, KDialog::spacingHint());
+ tqlayout->addRowSpacing(2, KDialog::spacingHint());
+ tqlayout->addRowSpacing(6, KDialog::spacingHint());
- setMinimumSize(layout->sizeHint());
+ setMinimumSize(tqlayout->tqsizeHint());
connect(_addButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(addCmd()) ) ;