summaryrefslogtreecommitdiffstats
path: root/ksysguard/gui/ksgrd/HostConnector.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /ksysguard/gui/ksgrd/HostConnector.cc
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysguard/gui/ksgrd/HostConnector.cc')
-rw-r--r--ksysguard/gui/ksgrd/HostConnector.cc96
1 files changed, 48 insertions, 48 deletions
diff --git a/ksysguard/gui/ksgrd/HostConnector.cc b/ksysguard/gui/ksgrd/HostConnector.cc
index 5762d08b3..3885a9518 100644
--- a/ksysguard/gui/ksgrd/HostConnector.cc
+++ b/ksysguard/gui/ksgrd/HostConnector.cc
@@ -23,100 +23,100 @@
#include <kcombobox.h>
#include <klocale.h>
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qspinbox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqspinbox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include "HostConnector.h"
-HostConnector::HostConnector( QWidget *parent, const char *name )
+HostConnector::HostConnector( TQWidget *parent, const char *name )
: KDialogBase( Plain, i18n( "Connect Host" ), Help | Ok | Cancel, Ok,
parent, name, true, true )
{
- QFrame *page = plainPage();
- QGridLayout *layout = new QGridLayout( page, 2, 2, 0, spacingHint() );
+ TQFrame *page = plainPage();
+ TQGridLayout *layout = new TQGridLayout( page, 2, 2, 0, spacingHint() );
layout->setColStretch( 1, 1 );
- QLabel *label = new QLabel( i18n( "Host:" ), page );
+ TQLabel *label = new TQLabel( i18n( "Host:" ), page );
layout->addWidget( label, 0, 0 );
mHostNames = new KComboBox( true, page );
mHostNames->setMaxCount( 20 );
- mHostNames->setInsertionPolicy( QComboBox::AtTop );
+ mHostNames->setInsertionPolicy( TQComboBox::AtTop );
mHostNames->setAutoCompletion( true );
mHostNames->setDuplicatesEnabled( false );
layout->addWidget( mHostNames, 0, 1 );
label->setBuddy( mHostNames );
- QWhatsThis::add( mHostNames, i18n( "Enter the name of the host you want to connect to." ) );
+ TQWhatsThis::add( mHostNames, i18n( "Enter the name of the host you want to connect to." ) );
- mHostNameLabel = new QLabel( page );
+ mHostNameLabel = new TQLabel( page );
mHostNameLabel->hide();
layout->addWidget( mHostNameLabel, 0, 1 );
- QButtonGroup *group = new QButtonGroup( 0, Qt::Vertical,
+ TQButtonGroup *group = new TQButtonGroup( 0, Qt::Vertical,
i18n( "Connection Type" ), page );
- QGridLayout *groupLayout = new QGridLayout( group->layout(), 4, 4,
+ TQGridLayout *groupLayout = new TQGridLayout( group->layout(), 4, 4,
spacingHint() );
groupLayout->setAlignment( Qt::AlignTop );
- mUseSsh = new QRadioButton( i18n( "ssh" ), group );
+ mUseSsh = new TQRadioButton( i18n( "ssh" ), group );
mUseSsh->setEnabled( true );
mUseSsh->setChecked( true );
- QWhatsThis::add( mUseSsh, i18n( "Select this to use the secure shell to login to the remote host." ) );
+ TQWhatsThis::add( mUseSsh, i18n( "Select this to use the secure shell to login to the remote host." ) );
groupLayout->addWidget( mUseSsh, 0, 0 );
- mUseRsh = new QRadioButton( i18n( "rsh" ), group );
- QWhatsThis::add( mUseRsh, i18n( "Select this to use the remote shell to login to the remote host." ) );
+ mUseRsh = new TQRadioButton( i18n( "rsh" ), group );
+ TQWhatsThis::add( mUseRsh, i18n( "Select this to use the remote shell to login to the remote host." ) );
groupLayout->addWidget( mUseRsh, 0, 1 );
- mUseDaemon = new QRadioButton( i18n( "Daemon" ), group );
- QWhatsThis::add( mUseDaemon, i18n( "Select this if you want to connect to a ksysguard daemon that is running on the machine you want to connect to, and is listening for client requests." ) );
+ mUseDaemon = new TQRadioButton( i18n( "Daemon" ), group );
+ TQWhatsThis::add( mUseDaemon, i18n( "Select this if you want to connect to a ksysguard daemon that is running on the machine you want to connect to, and is listening for client requests." ) );
groupLayout->addWidget( mUseDaemon, 0, 2 );
- mUseCustom = new QRadioButton( i18n( "Custom command" ), group );
- QWhatsThis::add( mUseCustom, i18n( "Select this to use the command you entered below to start ksysguardd on the remote host." ) );
+ mUseCustom = new TQRadioButton( i18n( "Custom command" ), group );
+ TQWhatsThis::add( mUseCustom, i18n( "Select this to use the command you entered below to start ksysguardd on the remote host." ) );
groupLayout->addWidget( mUseCustom, 0, 3 );
- label = new QLabel( i18n( "Port:" ), group );
+ label = new TQLabel( i18n( "Port:" ), group );
groupLayout->addWidget( label, 1, 0 );
- mPort = new QSpinBox( 1, 65535, 1, group );
+ mPort = new TQSpinBox( 1, 65535, 1, group );
mPort->setEnabled( false );
mPort->setValue( 3112 );
- QToolTip::add( mPort, i18n( "Enter the port number on which the ksysguard daemon is listening for connections." ) );
+ TQToolTip::add( mPort, i18n( "Enter the port number on which the ksysguard daemon is listening for connections." ) );
groupLayout->addWidget( mPort, 1, 2 );
- label = new QLabel( i18n( "e.g. 3112" ), group );
+ label = new TQLabel( i18n( "e.g. 3112" ), group );
groupLayout->addWidget( label, 1, 3 );
- label = new QLabel( i18n( "Command:" ), group );
+ label = new TQLabel( i18n( "Command:" ), group );
groupLayout->addWidget( label, 2, 0 );
mCommands = new KComboBox( true, group );
mCommands->setEnabled( false );
mCommands->setMaxCount( 20 );
- mCommands->setInsertionPolicy( QComboBox::AtTop );
+ mCommands->setInsertionPolicy( TQComboBox::AtTop );
mCommands->setAutoCompletion( true );
mCommands->setDuplicatesEnabled( false );
- QWhatsThis::add( mCommands, i18n( "Enter the command that runs ksysguardd on the host you want to monitor." ) );
+ TQWhatsThis::add( mCommands, i18n( "Enter the command that runs ksysguardd on the host you want to monitor." ) );
groupLayout->addMultiCellWidget( mCommands, 2, 2, 2, 3 );
label->setBuddy( mCommands );
- label = new QLabel( i18n( "e.g. ssh -l root remote.host.org ksysguardd" ), group );
+ label = new TQLabel( i18n( "e.g. ssh -l root remote.host.org ksysguardd" ), group );
groupLayout->addMultiCellWidget( label, 3, 3, 2, 3 );
layout->addMultiCellWidget( group, 1, 1, 0, 1 );
- connect( mUseCustom, SIGNAL( toggled( bool ) ),
- mCommands, SLOT( setEnabled( bool ) ) );
- connect( mUseDaemon, SIGNAL( toggled( bool ) ),
- mPort, SLOT( setEnabled( bool ) ) );
- connect( mHostNames->lineEdit(), SIGNAL( textChanged ( const QString & ) ),
- this, SLOT( slotHostNameChanged( const QString & ) ) );
+ connect( mUseCustom, TQT_SIGNAL( toggled( bool ) ),
+ mCommands, TQT_SLOT( setEnabled( bool ) ) );
+ connect( mUseDaemon, TQT_SIGNAL( toggled( bool ) ),
+ mPort, TQT_SLOT( setEnabled( bool ) ) );
+ connect( mHostNames->lineEdit(), TQT_SIGNAL( textChanged ( const TQString & ) ),
+ this, TQT_SLOT( slotHostNameChanged( const TQString & ) ) );
enableButtonOK( !mHostNames->lineEdit()->text().isEmpty() );
KAcceleratorManager::manage( this );
}
@@ -125,19 +125,19 @@ HostConnector::~HostConnector()
{
}
-void HostConnector::slotHostNameChanged( const QString &_text )
+void HostConnector::slotHostNameChanged( const TQString &_text )
{
enableButtonOK( !_text.isEmpty() );
}
-void HostConnector::setHostNames( const QStringList &list )
+void HostConnector::setHostNames( const TQStringList &list )
{
mHostNames->insertStringList( list );
}
-QStringList HostConnector::hostNames() const
+TQStringList HostConnector::hostNames() const
{
- QStringList list;
+ TQStringList list;
for ( int i = 0; i < mHostNames->count(); ++i )
list.append( mHostNames->text( i ) );
@@ -145,14 +145,14 @@ QStringList HostConnector::hostNames() const
return list;
}
-void HostConnector::setCommands( const QStringList &list )
+void HostConnector::setCommands( const TQStringList &list )
{
mCommands->insertStringList( list );
}
-QStringList HostConnector::commands() const
+TQStringList HostConnector::commands() const
{
- QStringList list;
+ TQStringList list;
for ( int i = 0; i < mCommands->count(); ++i )
list.append( mCommands->text( i ) );
@@ -160,7 +160,7 @@ QStringList HostConnector::commands() const
return list;
}
-void HostConnector::setCurrentHostName( const QString &hostName )
+void HostConnector::setCurrentHostName( const TQString &hostName )
{
if ( !hostName.isEmpty() ) {
mHostNames->hide();
@@ -174,12 +174,12 @@ void HostConnector::setCurrentHostName( const QString &hostName )
}
}
-QString HostConnector::currentHostName() const
+TQString HostConnector::currentHostName() const
{
return mHostNames->currentText();
}
-QString HostConnector::currentCommand() const
+TQString HostConnector::currentCommand() const
{
return mCommands->currentText();
}