From d6331f1b56eb6dca7a1950658b2932f208015da0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:50:38 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kbabel/commonui/cmdedit.cpp | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kbabel/commonui/cmdedit.cpp') 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 #include #include -#include +#include #include #include #include @@ -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()) ) ; -- cgit v1.2.1