diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:51:49 +0000 |
commit | 4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch) | |
tree | b0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kbabel/commonui/cmdedit.cpp | |
parent | 1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff) | |
download | tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbabel/commonui/cmdedit.cpp')
-rw-r--r-- | kbabel/commonui/cmdedit.cpp | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/kbabel/commonui/cmdedit.cpp b/kbabel/commonui/cmdedit.cpp index bfe95293..07a35c2f 100644 --- a/kbabel/commonui/cmdedit.cpp +++ b/kbabel/commonui/cmdedit.cpp @@ -32,67 +32,67 @@ **************************************************************************** */ #include "cmdedit.h" -#include <qlistbox.h> -#include <qlineedit.h> -#include <qpushbutton.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qtoolbutton.h> +#include <tqlistbox.h> +#include <tqlineedit.h> +#include <tqpushbutton.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqtoolbutton.h> #include <klocale.h> #include <kdialog.h> -CmdEdit::CmdEdit(QWidget* parent, const char* name) - : QWidget(parent,name) +CmdEdit::CmdEdit(TQWidget* parent, const char* name) + : TQWidget(parent,name) { - QGridLayout* layout = new QGridLayout( this , 1 , 1 ); + TQGridLayout* layout = new TQGridLayout( this , 1 , 1 ); layout->setSpacing( KDialog::spacingHint() ); - QLabel* nameLabel = new QLabel( i18n("Command &Label:"), this); - QLabel* cmdLabel = new QLabel( i18n("Co&mmand:"), this); + 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 ); - _cmdNameEdit = new QLineEdit( this , "cmdNameEdit" ); + _cmdNameEdit = new TQLineEdit( this , "cmdNameEdit" ); _cmdNameEdit->setMaxLength(20); nameLabel->setBuddy(_cmdNameEdit); layout->addWidget( _cmdNameEdit , 1 , 0 ); - _cmdEdit = new QLineEdit( this , "cmdEdit" ); + _cmdEdit = new TQLineEdit( this , "cmdEdit" ); cmdLabel->setBuddy(_cmdEdit); layout->addWidget( _cmdEdit , 1 , 1 ); - _addButton = new QPushButton( i18n("&Add"), this ); + _addButton = new TQPushButton( i18n("&Add"), this ); _addButton->setEnabled(false); layout->addWidget( _addButton , 1 , 2 ); - _editButton = new QPushButton( i18n("&Edit"), this ); + _editButton = new TQPushButton( i18n("&Edit"), this ); _editButton->setEnabled(false); layout->addWidget( _editButton , 3 , 2 ); - _removeButton = new QPushButton( i18n("&Remove"), this ); + _removeButton = new TQPushButton( i18n("&Remove"), this ); _removeButton->setEnabled(false); layout->addWidget( _removeButton , 4 , 2 ); - QHBoxLayout* hbox = new QHBoxLayout(); + TQHBoxLayout* hbox = new TQHBoxLayout(); layout->addLayout(hbox,5,2); - _upButton = new QToolButton(UpArrow,this); + _upButton = new TQToolButton(UpArrow,this); _upButton->setFixedSize(20,20); _upButton->setEnabled(false); hbox->addWidget( _upButton ); - _downButton = new QToolButton(DownArrow,this); + _downButton = new TQToolButton(DownArrow,this); _downButton->setFixedSize(20,20); _downButton->setEnabled(false); hbox->addWidget( _downButton); - _commandNames = new QListBox( this , "commandNamesBox" ); + _commandNames = new TQListBox( this , "commandNamesBox" ); _commandNames->setMinimumSize(100, 100); layout->addMultiCellWidget( _commandNames , 3 , 6 , 0 , 0); - _commands = new QListBox( this , "commandsBox" ); + _commands = new TQListBox( this , "commandsBox" ); _commands->setMinimumSize(160, 100); layout->addMultiCellWidget( _commands , 3 , 6 , 1 ,1 ); @@ -107,22 +107,22 @@ CmdEdit::CmdEdit(QWidget* parent, const char* name) setMinimumSize(layout->sizeHint()); - connect(_addButton , SIGNAL(clicked()) , this , SLOT(addCmd()) ) ; - connect(_editButton , SIGNAL(clicked()) , this , SLOT(editCmd()) ); - connect(_removeButton , SIGNAL(clicked()) , this , SLOT(removeCmd()) ); - connect(_upButton , SIGNAL(clicked()) , this , SLOT(upCmd()) ) ; - connect(_downButton , SIGNAL(clicked()) , this , SLOT(downCmd()) ); + connect(_addButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(addCmd()) ) ; + connect(_editButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(editCmd()) ); + connect(_removeButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(removeCmd()) ); + connect(_upButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(upCmd()) ) ; + connect(_downButton , TQT_SIGNAL(clicked()) , this , TQT_SLOT(downCmd()) ); - connect(_commands , SIGNAL(highlighted(int)) , this, SLOT(cmdHighlighted(int)) ); - connect(_commandNames , SIGNAL(highlighted(int)) , this, SLOT(cmdNameHighlighted(int)) ); - connect(_commands , SIGNAL(selected(int)) , this, SLOT(editCmd()) ); - connect(_commandNames , SIGNAL(selected(int)) , this, SLOT(editCmd()) ); + connect(_commands , TQT_SIGNAL(highlighted(int)) , this, TQT_SLOT(cmdHighlighted(int)) ); + connect(_commandNames , TQT_SIGNAL(highlighted(int)) , this, TQT_SLOT(cmdNameHighlighted(int)) ); + connect(_commands , TQT_SIGNAL(selected(int)) , this, TQT_SLOT(editCmd()) ); + connect(_commandNames , TQT_SIGNAL(selected(int)) , this, TQT_SLOT(editCmd()) ); - connect(_cmdEdit, SIGNAL(textChanged(const QString&)) , this , SLOT(checkAdd()) ); - connect(_cmdNameEdit, SIGNAL(textChanged(const QString&)) , this , SLOT(checkAdd()) ); + connect(_cmdEdit, TQT_SIGNAL(textChanged(const TQString&)) , this , TQT_SLOT(checkAdd()) ); + connect(_cmdNameEdit, TQT_SIGNAL(textChanged(const TQString&)) , this , TQT_SLOT(checkAdd()) ); } -void CmdEdit::setCommands(const QStringList& commands,const QStringList& commandNames) +void CmdEdit::setCommands(const TQStringList& commands,const TQStringList& commandNames) { _commands->clear(); _commands->insertStringList(commands); @@ -131,7 +131,7 @@ void CmdEdit::setCommands(const QStringList& commands,const QStringList& command _commandNames->insertStringList(commandNames); } -void CmdEdit::commands(QStringList& commands, QStringList& commandNames) +void CmdEdit::commands(TQStringList& commands, TQStringList& commandNames) { commands.clear(); commandNames.clear(); @@ -148,8 +148,8 @@ void CmdEdit::commands(QStringList& commands, QStringList& commandNames) void CmdEdit::addCmd() { - QString cmd = _cmdEdit->text(); - QString cmdName = _cmdNameEdit->text(); + TQString cmd = _cmdEdit->text(); + TQString cmdName = _cmdNameEdit->text(); _cmdEdit->clear(); _cmdNameEdit->clear(); @@ -197,8 +197,8 @@ void CmdEdit::removeCmd() void CmdEdit::upCmd() { - QString cmd = _commands->currentText(); - QString cmdName = _commandNames->currentText(); + TQString cmd = _commands->currentText(); + TQString cmdName = _commandNames->currentText(); int index=_commands->currentItem(); _commands->removeItem(index); @@ -220,8 +220,8 @@ void CmdEdit::upCmd() void CmdEdit::downCmd() { - QString cmd = _commands->currentText(); - QString cmdName = _commandNames->currentText(); + TQString cmd = _commands->currentText(); + TQString cmdName = _commandNames->currentText(); int index=_commands->currentItem(); _commands->removeItem(index); |