diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kuser/editDefaults.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-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/editDefaults.cpp')
-rw-r--r-- | kuser/editDefaults.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kuser/editDefaults.cpp b/kuser/editDefaults.cpp index 82aba32..75ca1e7 100644 --- a/kuser/editDefaults.cpp +++ b/kuser/editDefaults.cpp @@ -37,7 +37,7 @@ #include "passwordpolicy.h" #include "misc.h" -editDefaults::editDefaults( KConfigSkeleton *config, QWidget *parent, const char *name ) : +editDefaults::editDefaults( KConfigSkeleton *config, TQWidget *parent, const char *name ) : KConfigDialog( parent, name, config, IconList, Default|Ok|Apply|Cancel|Help, Ok, true ) { @@ -76,7 +76,7 @@ editDefaults::editDefaults( KConfigSkeleton *config, QWidget *parent, const char page3->addTab( page3b, i18n("Settings") ); page3c = new LdapSamba( this ); - connect( page3c->domQuery, SIGNAL(clicked()), SLOT(slotQueryClicked()) ); + connect( page3c->domQuery, TQT_SIGNAL(clicked()), TQT_SLOT(slotQueryClicked()) ); page3->addTab( page3c, i18n("Samba") ); addPage( page3, i18n("LDAP"), "", i18n("LDAP Source Settings") ); } @@ -91,9 +91,9 @@ void editDefaults::slotQueryClicked() mDomain.sid = ""; mDomain.ridbase = 1000; - QStringList attrs; - QString filter = "(objectClass=sambaDomain)"; - QString dom = page3c->kcfg_samdomain->text(); + TQStringList attrs; + TQString filter = "(objectClass=sambaDomain)"; + TQString dom = page3c->kcfg_samdomain->text(); if ( !dom.isEmpty() ) filter = "(&(sambaDomainName=" + dom + ")"+filter+")"; attrs.append("sambaDomainName"); attrs.append("sambaSID"); @@ -107,10 +107,10 @@ void editDefaults::slotQueryClicked() mLdif.startParsing(); KIO::Job *job = KIO::get( _url, true, false ); // job->addMetaData("no-auth-prompt","true"); - connect( job, SIGNAL( data( KIO::Job*, const QByteArray& ) ), - this, SLOT( loadData( KIO::Job*, const QByteArray& ) ) ); - connect( job, SIGNAL( result( KIO::Job* ) ), - this, SLOT( loadResult( KIO::Job* ) ) ); + connect( job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ), + this, TQT_SLOT( loadData( KIO::Job*, const TQByteArray& ) ) ); + connect( job, TQT_SIGNAL( result( KIO::Job* ) ), + this, TQT_SLOT( loadResult( KIO::Job* ) ) ); mProg = new KProgressDialog( this, 0, i18n("LDAP Query"), _url.prettyURL(), true ); mProg->progressBar()->setValue( 0 ); @@ -135,7 +135,7 @@ void editDefaults::slotQueryClicked() kdDebug() << "domQueryx" << endl; } -void editDefaults::loadData( KIO::Job*, const QByteArray& d ) +void editDefaults::loadData( KIO::Job*, const TQByteArray& d ) { KABC::LDIF::ParseVal ret; @@ -149,11 +149,11 @@ void editDefaults::loadData( KIO::Job*, const QByteArray& d ) switch ( ret ) { case KABC::LDIF::Item: if ( mLdif.attr() == "sambaDomainName" ) - mDomain.name = QString::fromUtf8( mLdif.val(), mLdif.val().size() ); + mDomain.name = TQString::fromUtf8( mLdif.val(), mLdif.val().size() ); else if ( mLdif.attr() == "sambaSID" ) - mDomain.sid = QString::fromUtf8( mLdif.val(), mLdif.val().size() ); + mDomain.sid = TQString::fromUtf8( mLdif.val(), mLdif.val().size() ); else if ( mLdif.attr() == "sambaAlgorithmicRidBase" ) - mDomain.ridbase = QString::fromUtf8( mLdif.val(), mLdif.val().size() ).toUInt(); + mDomain.ridbase = TQString::fromUtf8( mLdif.val(), mLdif.val().size() ).toUInt(); break; case KABC::LDIF::EndEntry: mProg->progressBar()->advance( 1 ); |