diff options
Diffstat (limited to 'kuser/mainView.cpp')
-rw-r--r-- | kuser/mainView.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kuser/mainView.cpp b/kuser/mainView.cpp index 9c9b5d8..82b5cb3 100644 --- a/kuser/mainView.cpp +++ b/kuser/mainView.cpp @@ -39,7 +39,7 @@ #include "pwddlg.h" #include "editGroup.h" -mainView::mainView(TQWidget *parent) : TQTabWidget(parent) +mainView::mainView(TQWidget *tqparent) : TQTabWidget(tqparent) { init(); } @@ -165,7 +165,7 @@ void mainView::userdel() if ( group && KMessageBox::questionYesNo( 0, i18n("You are using private groups.\n" "Do you want to delete the user's private group '%1'?") - .arg(group->getName()), TQString::null, + .tqarg(group->getName()), TQString(), KStdGuiItem::del(), i18n("Do Not Delete")) == KMessageBox::Yes) { kdDebug() << "del private group" << endl; kug->getGroups().del( group ); @@ -196,14 +196,14 @@ void mainView::useradd() */ if ( samba ) rid = SID::uid2rid( uid ); bool ok; - TQString name = KInputDialog::getText( TQString::null, + TQString name = KInputDialog::getText( TQString(), i18n("Please type the name of the new user:"), - TQString::null, &ok ); + TQString(), &ok ); if ( !ok ) return; if ( kug->getUsers().lookup( name ) ) { - KMessageBox::sorry( 0, i18n("User with name %1 already exists.").arg( name ) ); + KMessageBox::sorry( 0, i18n("User with name %1 already exists.").tqarg( name ) ); return; } @@ -217,15 +217,15 @@ void mainView::useradd() sid.setDOM( kug->getUsers().getDOMSID() ); sid.setRID( rid ); tk->setSID( sid ); - tk->setProfilePath( kug->kcfg()->samprofilepath().replace( "%U",name ) ); - tk->setHomePath( kug->kcfg()->samhomepath().replace( "%U", name ) ); + tk->setProfilePath( kug->kcfg()->samprofilepath().tqreplace( "%U",name ) ); + tk->setHomePath( kug->kcfg()->samhomepath().tqreplace( "%U", name ) ); tk->setHomeDrive( kug->kcfg()->samhomedrive() ); tk->setLoginScript( kug->kcfg()->samloginscript() ); tk->setDomain( kug->kcfg()->samdomain() ); } tk->setShell( kug->kcfg()->shell() ); - tk->setHomeDir( kug->kcfg()->homepath().replace( "%U", name ) ); + tk->setHomeDir( kug->kcfg()->homepath().tqreplace( "%U", name ) ); if ( kug->getUsers().getCaps() & KU::KUsers::Cap_Shadow || samba ) { tk->setLastChange( now() ); } @@ -305,7 +305,7 @@ void mainView::setpwd() if ( count > 1 ) { if ( KMessageBox::questionYesNo( 0, i18n("You have selected %1 users. Do you really want to change the password for all the selected users?") - .arg( count ), TQString::null, i18n("Change"), i18n("Do Not Change") ) == KMessageBox::No ) return; + .tqarg( count ), TQString(), i18n("Change"), i18n("Do Not Change") ) == KMessageBox::No ) return; } pwddlg d( this ); if ( d.exec() != TQDialog::Accepted ) return; @@ -444,7 +444,7 @@ void mainView::grpdel() KU::KUser *user = kug->getUsers().first(); while ( user ) { if ( user->getGID() == group->getGID() ) { - KMessageBox::error( 0, i18n( "The group '%1' is the primary group of one or more users (such as '%2'); it cannot be deleted." ).arg( group->getName() ).arg( user->getName() ) ); + KMessageBox::error( 0, i18n( "The group '%1' is the primary group of one or more users (such as '%2'); it cannot be deleted." ).tqarg( group->getName() ).tqarg( user->getName() ) ); return; } user = kug->getUsers().next(); @@ -457,13 +457,13 @@ void mainView::grpdel() case 0: return; case 1: if (KMessageBox::warningContinueCancel( 0, - i18n("Do you really want to delete the group '%1'?").arg(group->getName()), - TQString::null, KStdGuiItem::del()) != KMessageBox::Continue) return; + i18n("Do you really want to delete the group '%1'?").tqarg(group->getName()), + TQString(), KStdGuiItem::del()) != KMessageBox::Continue) return; break; default: if (KMessageBox::warningContinueCancel( 0, - i18n("Do you really want to delete the %1 selected groups?").arg(selected), - TQString::null, KStdGuiItem::del()) != KMessageBox::Continue) return; + i18n("Do you really want to delete the %1 selected groups?").tqarg(selected), + TQString(), KStdGuiItem::del()) != KMessageBox::Continue) return; } item = lbgroups->firstChild(); |