summaryrefslogtreecommitdiffstats
path: root/kbabel/commonui/cmdedit.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:38 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:38 -0600
commitd6331f1b56eb6dca7a1950658b2932f208015da0 (patch)
treef99bf8d1571f93304bdb4a46fb199a1bde60e6ee /kbabel/commonui/cmdedit.cpp
parente738fee8847c1f606df7b338a589cc8c0539a521 (diff)
downloadtdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.tar.gz
tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.zip
Rename a number of old tq methods that are no longer tq specific
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 df8ce38a..77abf661 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 <tqlayout.h>
+#include <layout.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* tqlayout = new TQGridLayout( this , 1 , 1 );
- tqlayout->setSpacing( KDialog::spacingHint() );
+ TQGridLayout* layout = new TQGridLayout( this , 1 , 1 );
+ layout->setSpacing( KDialog::spacingHint() );
TQLabel* nameLabel = new TQLabel( i18n("Command &Label:"), this);
TQLabel* cmdLabel = new TQLabel( i18n("Co&mmand:"), this);
- tqlayout->addWidget( nameLabel, 0 , 0 );
- tqlayout->addWidget( cmdLabel, 0 , 1 );
+ layout->addWidget( nameLabel, 0 , 0 );
+ layout->addWidget( cmdLabel, 0 , 1 );
_cmdNameEdit = new TQLineEdit( this , "cmdNameEdit" );
_cmdNameEdit->setMaxLength(20);
nameLabel->setBuddy(_cmdNameEdit);
- tqlayout->addWidget( _cmdNameEdit , 1 , 0 );
+ layout->addWidget( _cmdNameEdit , 1 , 0 );
_cmdEdit = new TQLineEdit( this , "cmdEdit" );
cmdLabel->setBuddy(_cmdEdit);
- tqlayout->addWidget( _cmdEdit , 1 , 1 );
+ layout->addWidget( _cmdEdit , 1 , 1 );
_addButton = new TQPushButton( i18n("&Add"), this );
_addButton->setEnabled(false);
- tqlayout->addWidget( _addButton , 1 , 2 );
+ layout->addWidget( _addButton , 1 , 2 );
_editButton = new TQPushButton( i18n("&Edit"), this );
_editButton->setEnabled(false);
- tqlayout->addWidget( _editButton , 3 , 2 );
+ layout->addWidget( _editButton , 3 , 2 );
_removeButton = new TQPushButton( i18n("&Remove"), this );
_removeButton->setEnabled(false);
- tqlayout->addWidget( _removeButton , 4 , 2 );
+ layout->addWidget( _removeButton , 4 , 2 );
TQHBoxLayout* hbox = new TQHBoxLayout();
- tqlayout->addLayout(hbox,5,2);
+ layout->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);
- tqlayout->addMultiCellWidget( _commandNames , 3 , 6 , 0 , 0);
+ layout->addMultiCellWidget( _commandNames , 3 , 6 , 0 , 0);
_commands = new TQListBox( this , "commandsBox" );
_commands->setMinimumSize(160, 100);
- tqlayout->addMultiCellWidget( _commands , 3 , 6 , 1 ,1 );
+ layout->addMultiCellWidget( _commands , 3 , 6 , 1 ,1 );
- tqlayout->setColStretch(0,1);
- tqlayout->setColStretch(1,2);
- tqlayout->setColStretch(2,0);
+ layout->setColStretch(0,1);
+ layout->setColStretch(1,2);
+ layout->setColStretch(2,0);
- tqlayout->addRowSpacing(2, KDialog::spacingHint());
- tqlayout->addRowSpacing(6, KDialog::spacingHint());
+ layout->addRowSpacing(2, KDialog::spacingHint());
+ layout->addRowSpacing(6, KDialog::spacingHint());
- setMinimumSize(tqlayout->tqsizeHint());
+ setMinimumSize(layout->sizeHint());
connect(_addButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(addCmd()) ) ;