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.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kbabel/commonui/cmdedit.cpp b/kbabel/commonui/cmdedit.cpp
index 77abf661..df8ce38a 100644
--- a/kbabel/commonui/cmdedit.cpp
+++ b/kbabel/commonui/cmdedit.cpp
@@ -35,7 +35,7 @@
#include <tqlistbox.h>
#include <tqlineedit.h>
#include <tqpushbutton.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqlabel.h>
#include <tqtoolbutton.h>
#include <klocale.h>
@@ -45,38 +45,38 @@
CmdEdit::CmdEdit(TQWidget* parent, const char* name)
: TQWidget(parent,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()) ) ;