From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kuser/selectconn.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'kuser/selectconn.cpp') diff --git a/kuser/selectconn.cpp b/kuser/selectconn.cpp index f5a6385..138c9ce 100644 --- a/kuser/selectconn.cpp +++ b/kuser/selectconn.cpp @@ -16,12 +16,12 @@ * Boston, MA 02110-1301, USA. **/ -#include -#include +#include +#include -#include -#include -#include +#include +#include +#include #include #include @@ -33,29 +33,29 @@ #include "selectconn.h" #include "editDefaults.h" -SelectConn::SelectConn(const QString &selected, QWidget* parent, const char * name) : +SelectConn::SelectConn(const TQString &selected, TQWidget* parent, const char * name) : KDialogBase( Plain, WStyle_DialogBorder, parent, name, true, i18n("Connection Selection"), Ok | Apply | Cancel | User1 | User2 | User3 ) { - QStringList conns; + TQStringList conns; setButtonText( User3, i18n("&New...") ); setButtonText( User2, i18n("&Edit") ); setButtonText( User1, i18n("&Delete") ); - QFrame *page = plainPage(); - QVBoxLayout *topLayout = new QVBoxLayout( page, 0, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n("Defined connections:"), page ); + TQFrame *page = plainPage(); + TQVBoxLayout *topLayout = new TQVBoxLayout( page, 0, KDialog::spacingHint() ); + TQLabel *label = new TQLabel( i18n("Defined connections:"), page ); mCombo = new KComboBox( page ); mSelected = selected; kdDebug() << "selected item: " << mSelected << endl; conns = kapp->sharedConfig()->groupList(); - QStringList::iterator it = conns.begin(); + TQStringList::iterator it = conns.begin(); int i = 0, sel = 0; while ( it != conns.end() ) { if ( (*it).startsWith( "connection-" ) ) { - (*it).remove( QRegExp("^connection-") ); + (*it).remove( TQRegExp("^connection-") ); if ( (*it) == mSelected ) sel = i; i++; it++; @@ -70,14 +70,14 @@ SelectConn::SelectConn(const QString &selected, QWidget* parent, const char * na topLayout->addWidget( mCombo ); } -QString SelectConn::connSelected() +TQString SelectConn::connSelected() { return mCombo->currentText(); } void SelectConn::slotUser3() { - newconn = KInputDialog::getText( QString::null, + newconn = KInputDialog::getText( TQString::null, i18n("Please type the name of the new connection:") ); if ( newconn.isEmpty() ) return; if ( kapp->sharedConfig()->groupList().contains( "connection-" + newconn ) ) { @@ -88,7 +88,7 @@ void SelectConn::slotUser3() KUserPrefsBase kcfg( kapp->sharedConfig(), newconn ); editDefaults eddlg( &kcfg, this ); - connect(&eddlg, SIGNAL(settingsChanged()), this, SLOT(slotNewApplySettings())); + connect(&eddlg, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotNewApplySettings())); eddlg.exec(); if ( newconn.isEmpty() ) @@ -111,14 +111,14 @@ void SelectConn::slotUser2() kcfg.readConfig(); editDefaults eddlg( &kcfg, this ); - connect( &eddlg, SIGNAL(settingsChanged()), this, SLOT(slotApplySettings()) ); + connect( &eddlg, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(slotApplySettings()) ); eddlg.exec(); } void SelectConn::slotUser1() { - QString conn = connSelected(); + TQString conn = connSelected(); if ( KMessageBox::warningContinueCancel( 0, i18n("Do you really want to delete the connection '%1'?"). arg( conn ),i18n("Delete Connection"),KStdGuiItem::del() ) == KMessageBox::Cancel ) return; -- cgit v1.2.1