diff options
Diffstat (limited to 'kuser/kusersystem.cpp')
-rw-r--r-- | kuser/kusersystem.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kuser/kusersystem.cpp b/kuser/kusersystem.cpp index ef0247f..8c67fcb 100644 --- a/kuser/kusersystem.cpp +++ b/kuser/kusersystem.cpp @@ -25,7 +25,7 @@ #include <shadow.h> #endif -#include <qstring.h> +#include <tqstring.h> #include <kmessagebox.h> #include <kdebug.h> @@ -70,25 +70,25 @@ bool KUserSystem::loadpwd() { passwd *p; KU::KUser *tmpKU = 0; - QString tmp; + TQString tmp; setpwent(); //This should be enough for BSDs while ((p = getpwent()) != NULL) { tmpKU = new KU::KUser(); tmpKU->setUID(p->pw_uid); tmpKU->setGID(p->pw_gid); - tmpKU->setName(QString::fromLocal8Bit(p->pw_name)); - tmp = QString::fromLocal8Bit( p->pw_passwd ); + tmpKU->setName(TQString::fromLocal8Bit(p->pw_name)); + tmp = TQString::fromLocal8Bit( p->pw_passwd ); if ( tmp != "x" && tmp != "*" && !tmp.startsWith("!") ) tmpKU->setDisabled( false ); else tmpKU->setDisabled( true ); if ( tmp.startsWith("!") ) tmp.remove(0, 1); tmpKU->setPwd( tmp ); - tmpKU->setHomeDir(QString::fromLocal8Bit(p->pw_dir)); - tmpKU->setShell(QString::fromLocal8Bit(p->pw_shell)); + tmpKU->setHomeDir(TQString::fromLocal8Bit(p->pw_dir)); + tmpKU->setShell(TQString::fromLocal8Bit(p->pw_shell)); #if defined(__FreeBSD__) || defined(__bsdi__) - tmpKU->setClass(QString::fromLatin1(p->pw_class)); + tmpKU->setClass(TQString::fromLatin1(p->pw_class)); tmpKU->setLastChange(p->pw_change); tmpKU->setExpire(p->pw_expire); #endif @@ -109,16 +109,16 @@ bool KUserSystem::loadsdw() #ifdef HAVE_SHADOW struct spwd *spw; KU::KUser *up = NULL; - QString tmp; + TQString tmp; setspent(); while ((spw = getspent())) { // read a shadow password structure - if ((up = lookup(QString::fromLocal8Bit(spw->sp_namp))) == NULL) { + if ((up = lookup(TQString::fromLocal8Bit(spw->sp_namp))) == NULL) { continue; } - tmp = QString::fromLocal8Bit( spw->sp_pwdp ); + tmp = TQString::fromLocal8Bit( spw->sp_pwdp ); if ( tmp.startsWith("!!") || tmp == "*" ) { up->setDisabled( true ); tmp.remove( 0, 2 ); |