diff options
Diffstat (limited to 'filesharing/simple/groupconfigdlg.cpp')
-rw-r--r-- | filesharing/simple/groupconfigdlg.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/filesharing/simple/groupconfigdlg.cpp b/filesharing/simple/groupconfigdlg.cpp index 470f024f..304386c4 100644 --- a/filesharing/simple/groupconfigdlg.cpp +++ b/filesharing/simple/groupconfigdlg.cpp @@ -48,10 +48,10 @@ static bool userMod(const TQString & user, const TQValueList<KUserGroup> & group -GroupConfigDlg::GroupConfigDlg(TQWidget * parent, +GroupConfigDlg::GroupConfigDlg(TQWidget * tqparent, const TQString & fileShareGroup, bool restricted, bool rootPassNeeded, bool simpleSharing) - : KDialogBase(parent,"groupconfigdlg", true, + : KDialogBase(tqparent,"groupconfigdlg", true, i18n("Allowed Users"), Ok|Cancel, Ok, true) , m_fileShareGroup(fileShareGroup), m_restricted(restricted) , @@ -110,8 +110,8 @@ TQString prettyString(const KUser &user) { TQString fromPrettyString(const TQString & s) { // Jan Schaefer (jan) // i j - int i = s.find('('); - int j = s.find(')'); + int i = s.tqfind('('); + int j = s.tqfind(')'); TQString loginName = s.mid(i+1,j-i-1); return loginName; } @@ -128,7 +128,7 @@ void GroupConfigDlg::slotAddUser() { if (allUsers.count()==0) { KMessageBox::information(this, i18n("All users are in the %1 group already.") - .arg(m_fileShareGroup.name())); + .tqarg(m_fileShareGroup.name())); return; } @@ -173,7 +173,7 @@ bool GroupConfigDlg::addUser(const KUser & user, const KUserGroup & group) { groups.append(group); if (!userMod(user.loginName(),groups)) { KMessageBox::sorry(this,i18n("Could not add user '%1' to group '%2'") - .arg(user.loginName()).arg(group.name())); + .tqarg(user.loginName()).tqarg(group.name())); return false; } return true; @@ -185,7 +185,7 @@ bool GroupConfigDlg::removeUser(const KUser & user, const KUserGroup & group) { groups.remove(group); if (!userMod(user.loginName(),groups)) { KMessageBox::sorry(this,i18n("Could not remove user '%1' from group '%2'") - .arg(user.loginName()).arg(group.name())); + .tqarg(user.loginName()).tqarg(group.name())); return false; } return true; @@ -293,7 +293,7 @@ void GroupConfigDlg::slotChangeGroup() { TQString groupName = combo->currentText(); if (groupName != m_fileShareGroup.name()) { TQString oldGroup = m_fileShareGroup.name(); - if (allGroups.contains(KUserGroup(groupName))) + if (allGroups.tqcontains(KUserGroup(groupName))) setFileShareGroup(KUserGroup(groupName)); else { if (!createFileShareGroup(groupName)) { @@ -333,9 +333,9 @@ void GroupConfigDlg::setFileShareGroup(const KUserGroup & group) { updateListBox(); m_gui->groupUsersRadio->setText( i18n("Only users of the '%1' group are allowed to share folders") - .arg(m_fileShareGroup.name())); + .tqarg(m_fileShareGroup.name())); m_gui->usersGrpBx->setTitle(i18n("Users of '%1' Group") - .arg(m_fileShareGroup.name())); + .tqarg(m_fileShareGroup.name())); m_gui->otherGroupBtn->setText(i18n("Change Group...")); m_gui->usersGrpBx->show(); } else { @@ -360,7 +360,7 @@ bool GroupConfigDlg::addUsersToGroup(TQValueList<KUser> users,const KUserGroup & bool GroupConfigDlg::emptyGroup(const TQString & s) { if (KMessageBox::No == KMessageBox::questionYesNo(this, - i18n("Do you really want to remove all users from group '%1'?").arg(s), TQString::null, KStdGuiItem::del(), KStdGuiItem::cancel())) { + i18n("Do you really want to remove all users from group '%1'?").tqarg(s), TQString(), KStdGuiItem::del(), KStdGuiItem::cancel())) { return false; } @@ -377,7 +377,7 @@ bool GroupConfigDlg::emptyGroup(const TQString & s) { bool GroupConfigDlg::deleteGroup(const TQString & s) { if (KMessageBox::No == KMessageBox::questionYesNo(this, - i18n("Do you really want to delete group '%1'?").arg(s), TQString::null, KStdGuiItem::del(), KStdGuiItem::cancel())) { + i18n("Do you really want to delete group '%1'?").tqarg(s), TQString(), KStdGuiItem::del(), KStdGuiItem::cancel())) { return false; } @@ -385,7 +385,7 @@ bool GroupConfigDlg::deleteGroup(const TQString & s) { proc << "groupdel" << s; bool result = proc.start(KProcess::Block) && proc.normalExit(); if (!result) { - KMessageBox::sorry(this,i18n("Deleting group '%1' failed.").arg(s)); + KMessageBox::sorry(this,i18n("Deleting group '%1' failed.").tqarg(s)); } return result; @@ -398,7 +398,7 @@ bool GroupConfigDlg::createFileShareGroup(const TQString & s) { } if (KMessageBox::No == KMessageBox::questionYesNo(this, - i18n("This group '%1' does not exist. Should it be created?").arg(s), TQString::null, i18n("Create"), i18n("Do Not Create"))) + i18n("This group '%1' does not exist. Should it be created?").tqarg(s), TQString(), i18n("Create"), i18n("Do Not Create"))) return false; //debug("CreateFileShareGroup: "+s); @@ -406,7 +406,7 @@ bool GroupConfigDlg::createFileShareGroup(const TQString & s) { proc << "groupadd" << s; bool result = proc.start(KProcess::Block) && proc.normalExit(); if (!result) { - KMessageBox::sorry(this,i18n("Creation of group '%1' failed.").arg(s)); + KMessageBox::sorry(this,i18n("Creation of group '%1' failed.").tqarg(s)); } else { setFileShareGroup(KUserGroup(s)); } |