summaryrefslogtreecommitdiffstats
path: root/kuser/selectconn.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kuser/selectconn.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kuser/selectconn.cpp')
-rw-r--r--kuser/selectconn.cpp34
1 files changed, 17 insertions, 17 deletions
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 <qpixmap.h>
-#include <qlayout.h>
+#include <tqpixmap.h>
+#include <tqlayout.h>
-#include <qlabel.h>
-#include <qgrid.h>
-#include <qregexp.h>
+#include <tqlabel.h>
+#include <tqgrid.h>
+#include <tqregexp.h>
#include <kdebug.h>
#include <kapplication.h>
@@ -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;