From 83677e35509b4dafac63b76995652bdf3b49f209 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:34 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 808e453c56036211f57482ed847d54aca01bba68. --- filesharing/advanced/kcm_sambaconf/dictmanager.cpp | 2 +- .../advanced/kcm_sambaconf/expertuserdlg.ui | 4 +- filesharing/advanced/kcm_sambaconf/filemodedlg.ui | 6 +- .../advanced/kcm_sambaconf/groupselectdlg.ui | 4 +- .../advanced/kcm_sambaconf/hiddenfileview.cpp | 8 +- .../advanced/kcm_sambaconf/hiddenfileview.h | 2 +- .../advanced/kcm_sambaconf/joindomaindlg.ui | 4 +- filesharing/advanced/kcm_sambaconf/kcminterface.ui | 142 ++++++++++----------- .../advanced/kcm_sambaconf/kcmprinterdlg.ui | 18 +-- .../advanced/kcm_sambaconf/kcmsambaconf.cpp | 18 +-- .../advanced/kcm_sambaconf/konqinterface.ui | 4 +- .../kcm_sambaconf/linuxpermissionchecker.cpp | 8 +- .../advanced/kcm_sambaconf/printerdlgimpl.cpp | 6 +- .../advanced/kcm_sambaconf/qmultichecklistitem.cpp | 8 +- filesharing/advanced/kcm_sambaconf/sambafile.cpp | 12 +- filesharing/advanced/kcm_sambaconf/share.ui | 72 +++++------ .../advanced/kcm_sambaconf/sharedlgimpl.cpp | 2 +- .../advanced/kcm_sambaconf/smbconfconfigwidget.cpp | 12 +- .../advanced/kcm_sambaconf/smbpasswdfile.cpp | 4 +- .../advanced/kcm_sambaconf/socketoptionsdlg.ui | 2 +- .../advanced/kcm_sambaconf/userselectdlg.ui | 4 +- filesharing/advanced/kcm_sambaconf/usertab.ui | 2 +- filesharing/advanced/nfs/hostprops.ui | 14 +- filesharing/advanced/nfs/nfsdialog.cpp | 6 +- filesharing/advanced/nfs/nfsdialoggui.ui | 2 +- filesharing/advanced/nfs/nfsentry.cpp | 4 +- filesharing/advanced/nfs/nfsentry.h | 2 +- filesharing/advanced/nfs/nfsfile.cpp | 6 +- filesharing/advanced/nfs/nfshostdlg.cpp | 10 +- .../advanced/propsdlgplugin/propertiespage.cpp | 10 +- .../advanced/propsdlgplugin/propertiespagegui.ui | 22 ++-- .../propsdlgplugin/propsdlgshareplugin.cpp | 2 +- filesharing/simple/controlcenter.ui | 24 ++-- filesharing/simple/fileshare.cpp | 20 +-- filesharing/simple/groupconfigdlg.cpp | 20 +-- filesharing/simple/groupconfiggui.ui | 6 +- filesharing/simple/krichtextlabel.cpp | 12 +- filesharing/simple/krichtextlabel.h | 6 +- 38 files changed, 255 insertions(+), 255 deletions(-) (limited to 'filesharing') diff --git a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp index 04eb0be7..6048e871 100644 --- a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp +++ b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp @@ -58,7 +58,7 @@ DictManager::~DictManager() { void DictManager::handleUnsupportedWidget(const TQString & s, TQWidget* w) { w->setEnabled(false); - TQToolTip::add(w,i18n("The option %1 is not supported by your Samba version").arg(s)); + TQToolTip::add(w,i18n("The option %1 is not supported by your Samba version").tqarg(s)); } void DictManager::add(const TQString & key, TQLineEdit* lineEdit) { diff --git a/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui b/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui index 59b27886..690688c2 100644 --- a/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui @@ -129,7 +129,7 @@ Expanding - + 20 20 @@ -179,7 +179,7 @@ Expanding - + 20 40 diff --git a/filesharing/advanced/kcm_sambaconf/filemodedlg.ui b/filesharing/advanced/kcm_sambaconf/filemodedlg.ui index 96e207df..0f8867c8 100644 --- a/filesharing/advanced/kcm_sambaconf/filemodedlg.ui +++ b/filesharing/advanced/kcm_sambaconf/filemodedlg.ui @@ -67,7 +67,7 @@ Expanding - + 20 43 @@ -84,7 +84,7 @@ Expanding - + 70 20 @@ -359,7 +359,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui b/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui index 08595eb5..51f5e10b 100644 --- a/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui @@ -52,7 +52,7 @@ Expanding - + 285 20 @@ -113,7 +113,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp b/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp index 09252315..31a642ff 100644 --- a/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp +++ b/filesharing/advanced/kcm_sambaconf/hiddenfileview.cpp @@ -91,7 +91,7 @@ KFileItem* HiddenListViewItem::getFileItem() } -void HiddenListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment) +void HiddenListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment) { TQColorGroup _cg = cg; @@ -101,7 +101,7 @@ void HiddenListViewItem::paintCell(TQPainter *p, const TQColorGroup &cg, int col if (isOn(COL_HIDDEN)) _cg.setColor(TQColorGroup::Text,gray); - QMultiCheckListItem::paintCell(p, _cg, column, width, alignment); + QMultiCheckListItem::paintCell(p, _cg, column, width, tqalignment); } @@ -404,7 +404,7 @@ void HiddenFileView::checkBoxClicked(TQCheckBox* chkBox,KToggleAction* action,TQ // TODO remove and use instead int result = KMessageBox::questionYesNo(_dlg,i18n( "Some files you have selected are matched by the wildcarded string '%1'; " - "do you want to uncheck all files matching '%1'?").arg(rx->pattern()).arg(rx->pattern()).arg(rx->pattern()), + "do you want to uncheck all files matching '%1'?").tqarg(rx->pattern()).tqarg(rx->pattern()).tqarg(rx->pattern()), i18n("Wildcarded String"),i18n("Uncheck Matches"),i18n("Keep Selected")); TQPtrList lst = getMatchingItems( *rx ); @@ -519,7 +519,7 @@ void HiddenFileView::updateView() item->setOn(COL_VETO_OPLOCK,matchVetoOplock(item->text(0))); } - _dlg->hiddenListView->repaint(); + _dlg->hiddenListView->tqrepaint(); } diff --git a/filesharing/advanced/kcm_sambaconf/hiddenfileview.h b/filesharing/advanced/kcm_sambaconf/hiddenfileview.h index 58e0e056..27bd7c7b 100644 --- a/filesharing/advanced/kcm_sambaconf/hiddenfileview.h +++ b/filesharing/advanced/kcm_sambaconf/hiddenfileview.h @@ -47,7 +47,7 @@ public: HiddenListViewItem( TQListView *parent, KFileItem *fi, bool hidden, bool veto, bool vetoOplock ); ~HiddenListViewItem(); - virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment); + virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment); KFileItem* getFileItem(); protected: diff --git a/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui b/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui index 51a0ff36..2ab91cf5 100644 --- a/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui +++ b/filesharing/advanced/kcm_sambaconf/joindomaindlg.ui @@ -46,7 +46,7 @@ Expanding - + 20 20 @@ -190,7 +190,7 @@ Expanding - + 20 40 diff --git a/filesharing/advanced/kcm_sambaconf/kcminterface.ui b/filesharing/advanced/kcm_sambaconf/kcminterface.ui index f206907b..39a21fb3 100644 --- a/filesharing/advanced/kcm_sambaconf/kcminterface.ui +++ b/filesharing/advanced/kcm_sambaconf/kcminterface.ui @@ -91,7 +91,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout38 + tqlayout38 @@ -259,7 +259,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout33 + tqlayout33 @@ -370,7 +370,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. RichText - + WordBreak|AlignTop @@ -461,7 +461,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout39 + tqlayout39 @@ -521,7 +521,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 40 20 @@ -584,7 +584,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. For detailed help about every option please look at: - + AlignVCenter @@ -614,7 +614,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 30 0 @@ -633,7 +633,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 40 @@ -752,7 +752,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 0 @@ -900,7 +900,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 0 @@ -954,7 +954,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout56 + tqlayout56 @@ -1044,7 +1044,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout55 + tqlayout55 @@ -1066,7 +1066,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 30 @@ -1102,7 +1102,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 30 @@ -1135,7 +1135,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 20 30 @@ -1202,7 +1202,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. - layout55 + tqlayout55 @@ -1243,7 +1243,7 @@ and reappear on the right-hand side, as UNIX users which are not Samba users. Expanding - + 240 20 @@ -1413,7 +1413,7 @@ Only change something if you know what you are doing. Expanding - + 20 40 @@ -1673,7 +1673,7 @@ Only change something if you know what you are doing. Expanding - + 180 20 @@ -1717,7 +1717,7 @@ Only change something if you know what you are doing. Expanding - + 117 20 @@ -1789,7 +1789,7 @@ Only change something if you know what you are doing. Expanding - + 20 40 @@ -2065,7 +2065,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -2242,7 +2242,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -2295,7 +2295,7 @@ Only change something if you know what you are doing. Expanding - + 20 170 @@ -2458,7 +2458,7 @@ Only change something if you know what you are doing. Expanding - + 16 20 @@ -2592,7 +2592,7 @@ Only change something if you know what you are doing. Expanding - + 120 20 @@ -2611,7 +2611,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -2730,7 +2730,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -2768,7 +2768,7 @@ Only change something if you know what you are doing. 0 - + 76 0 @@ -2834,7 +2834,7 @@ Only change something if you know what you are doing. statusChk - Status + tqStatus true @@ -2906,7 +2906,7 @@ Only change something if you know what you are doing. Expanding - + 20 60 @@ -3034,7 +3034,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -3053,7 +3053,7 @@ Only change something if you know what you are doing. Expanding - + 20 50 @@ -3144,7 +3144,7 @@ Only change something if you know what you are doing. Expanding - + 16 20 @@ -3493,7 +3493,7 @@ Only change something if you know what you are doing. Expanding - + 20 16 @@ -3694,7 +3694,7 @@ Only change something if you know what you are doing. Expanding - + 20 40 @@ -3730,7 +3730,7 @@ Only change something if you know what you are doing. Expanding - + 20 100 @@ -3811,7 +3811,7 @@ Only change something if you know what you are doing. Preferred - + 323 20 @@ -4060,7 +4060,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -4202,7 +4202,7 @@ Only change something if you know what you are doing. Expanding - + 20 120 @@ -4347,7 +4347,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -4393,7 +4393,7 @@ Only change something if you know what you are doing. Expanding - + 20 280 @@ -4570,7 +4570,7 @@ Only change something if you know what you are doing. Expanding - + 30 20 @@ -4607,7 +4607,7 @@ Only change something if you know what you are doing. Oplock break &wait time: - + AlignVCenter @@ -4640,7 +4640,7 @@ Only change something if you know what you are doing. Expanding - + 50 20 @@ -4659,7 +4659,7 @@ Only change something if you know what you are doing. Expanding - + 20 120 @@ -4776,7 +4776,7 @@ Only change something if you know what you are doing. - unicodeChk + tqunicodeChk U&nicode @@ -4917,7 +4917,7 @@ Only change something if you know what you are doing. Expanding - + 20 80 @@ -5036,7 +5036,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -5481,7 +5481,7 @@ Only change something if you know what you are doing. Expanding - + 80 0 @@ -5500,7 +5500,7 @@ Only change something if you know what you are doing. Expanding - + 0 70 @@ -5729,7 +5729,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 140 0 @@ -5913,7 +5913,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 0 30 @@ -5949,7 +5949,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 50 @@ -6035,7 +6035,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 330 20 @@ -6193,7 +6193,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 40 20 @@ -6405,7 +6405,7 @@ This is only available if the SSL libraries have been compiled on your system an 0 - + 150 0 @@ -6468,7 +6468,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 340 20 @@ -6553,7 +6553,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 300 @@ -6728,7 +6728,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 370 20 @@ -6824,7 +6824,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 100 @@ -6860,7 +6860,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 280 @@ -6946,7 +6946,7 @@ This is only available if the SSL libraries have been compiled on your system an 0 - + 150 0 @@ -6993,7 +6993,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 0 30 @@ -7134,7 +7134,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 130 @@ -7339,7 +7339,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 330 20 @@ -7452,7 +7452,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 230 @@ -7643,7 +7643,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 40 20 @@ -7764,7 +7764,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 40 @@ -7838,7 +7838,7 @@ This is only available if the SSL libraries have been compiled on your system an Expanding - + 20 320 @@ -8243,7 +8243,7 @@ This is only available if the SSL libraries have been compiled on your system an logonDriveEdit logonPathUrlRq logonHomeUrlRq - unicodeChk + tqunicodeChk displayCharsetEdit unixCharsetEdit dosCharsetEdit diff --git a/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui b/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui index 069059bc..4a622f1a 100644 --- a/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/kcmprinterdlg.ui @@ -25,7 +25,7 @@ KcmPrinterDlg - + 0 0 @@ -319,7 +319,7 @@ Expanding - + 20 20 @@ -349,7 +349,7 @@ Expanding - + 20 50 @@ -535,7 +535,7 @@ Expanding - + 200 20 @@ -633,7 +633,7 @@ Expanding - + 20 20 @@ -683,7 +683,7 @@ Expanding - + 263 20 @@ -831,7 +831,7 @@ Expanding - + 20 20 @@ -944,7 +944,7 @@ Expanding - + 20 20 @@ -1079,7 +1079,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp index 64d09e0c..7914aef2 100644 --- a/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp +++ b/filesharing/advanced/kcm_sambaconf/kcmsambaconf.cpp @@ -32,7 +32,7 @@ #include #include -#include +#include #include #include #include @@ -919,7 +919,7 @@ void KcmSambaConf::loadCharset(SambaShare* ) _dictMngr->add("character set", _interface->characterSetEdit); _dictMngr->add("valid chars", _interface->validCharsEdit); - _dictMngr->add("unicode",_interface->unicodeChk); + _dictMngr->add("tqunicode",_interface->tqunicodeChk); } void KcmSambaConf::loadWinbind(SambaShare* ) @@ -1102,7 +1102,7 @@ void KcmSambaConf::joinADomainBtnClicked() { dlg->usernameEdit->text(), dlg->passwordEdit->text())) { - KMessageBox::sorry(0,i18n("Joining the domain %1 failed.").arg(dlg->domainEdit->text())); + KMessageBox::sorry(0,i18n("Joining the domain %1 failed.").tqarg(dlg->domainEdit->text())); } } delete dlg; @@ -1172,7 +1172,7 @@ void KcmSambaConf::addSambaUserBtnClicked() TQCString password; int passResult = KPasswordDialog::getNewPassword(password, - i18n("Please enter a password for the user %1").arg(user.name)); + i18n("Please enter a password for the user %1").tqarg(user.name)); if (passResult != KPasswordDialog::Accepted) { list.remove(item); continue; @@ -1180,7 +1180,7 @@ void KcmSambaConf::addSambaUserBtnClicked() if (!passwd.addUser(user,password)) { - KMessageBox::sorry(0,i18n("Adding the user %1 to the Samba user database failed.").arg(user.name)); + KMessageBox::sorry(0,i18n("Adding the user %1 to the Samba user database failed.").tqarg(user.name)); break; } @@ -1211,7 +1211,7 @@ void KcmSambaConf::removeSambaUserBtnClicked() SambaUser user( item->text(0), item->text(1).toInt() ); if (!passwd.removeUser(user)) { - KMessageBox::sorry(0,i18n("Removing the user %1 from the Samba user database failed.").arg(user.name)); + KMessageBox::sorry(0,i18n("Removing the user %1 from the Samba user database failed.").tqarg(user.name)); continue; } @@ -1235,13 +1235,13 @@ void KcmSambaConf::sambaUserPasswordBtnClicked() TQCString password; int passResult = KPasswordDialog::getNewPassword(password, - i18n("Please enter a password for the user %1").arg(user.name)); + i18n("Please enter a password for the user %1").tqarg(user.name)); if (passResult != KPasswordDialog::Accepted) return; if (!passwd.changePassword(user,password)) { - KMessageBox::sorry(0,i18n("Changing the password of the user %1 failed.").arg(user.name)); + KMessageBox::sorry(0,i18n("Changing the password of the user %1 failed.").tqarg(user.name)); } else { static_cast(item)->setOn(COL_NOPASSWORD,false); } @@ -1267,7 +1267,7 @@ void KcmSambaConf::save() { // Base settings _smbconf = _interface->configUrlRq->url(); - KSimpleConfig config(TQString::fromLatin1(FILESHARECONF),false); + KSimpleConfig config(TQString::tqfromLatin1(FILESHARECONF),false); config.writeEntry("SMBCONF",_smbconf); config.sync(); diff --git a/filesharing/advanced/kcm_sambaconf/konqinterface.ui b/filesharing/advanced/kcm_sambaconf/konqinterface.ui index 6cba8d8b..dfccf5c2 100644 --- a/filesharing/advanced/kcm_sambaconf/konqinterface.ui +++ b/filesharing/advanced/kcm_sambaconf/konqinterface.ui @@ -420,7 +420,7 @@ Expanding - + 20 0 @@ -447,7 +447,7 @@ Expanding - + 0 20 diff --git a/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp b/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp index 83ea5180..5bac2fdf 100644 --- a/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp +++ b/filesharing/advanced/kcm_sambaconf/linuxpermissionchecker.cpp @@ -115,7 +115,7 @@ bool LinuxPermissionChecker::checkPublicPermissions() { 0L,i18n( "You have specified public read access for this directory, but " "the guest account %1 does not have the necessary read permissions;
" - "do you want to continue anyway?
").arg(guestAccount) + "do you want to continue anyway?
").tqarg(guestAccount) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_guestAccountHasNoReadPermissionsWarning")) @@ -129,7 +129,7 @@ bool LinuxPermissionChecker::checkPublicPermissions() { 0L,i18n( "You have specified public write access for this directory, but " "the guest account %1 does not have the necessary write permissions;
" - "do you want to continue anyway?
").arg(guestAccount) + "do you want to continue anyway?").tqarg(guestAccount) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_guestAccountHasNoWritePermissionsWarning")) @@ -166,7 +166,7 @@ bool LinuxPermissionChecker::checkUserWritePermissions(const TQString & user, bo 0L,i18n( "You have specified write access to the user %1 for this directory, but " "the user does not have the necessary write permissions;
" - "do you want to continue anyway?
").arg(user) + "do you want to continue anyway?").tqarg(user) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_userHasNoWritePermissionsWarning")) @@ -189,7 +189,7 @@ bool LinuxPermissionChecker::checkUserReadPermissions(const TQString & user, boo 0L,i18n( "You have specified read access to the user %1 for this directory, but " "the user does not have the necessary read permissions;
" - "do you want to continue anyway?
").arg(user) + "do you want to continue anyway?").tqarg(user) ,i18n("Warning") ,KStdGuiItem::cont() ,"KSambaPlugin_userHasNoReadPermissionsWarning")) diff --git a/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp b/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp index 6182c5b0..0ba2082b 100644 --- a/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp +++ b/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include @@ -227,14 +227,14 @@ void PrinterDlgImpl::printersChkToggled(bool b) pix.setMask(mask); printerPixLbl->setPixmap(pix); - pixFrame->layout()->setMargin( 2 ); + pixFrame->tqlayout()->setMargin( 2 ); } else { shareNameEdit->setEnabled(true); shareNameEdit->setText( _share->getName() ); printerPixLbl->setPixmap(DesktopIcon("printer1")); - pixFrame->layout()->setMargin( 11 ); + pixFrame->tqlayout()->setMargin( 11 ); } } diff --git a/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp b/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp index 187289b6..1600aa7c 100644 --- a/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp +++ b/filesharing/advanced/kcm_sambaconf/qmultichecklistitem.cpp @@ -53,7 +53,7 @@ void QMultiCheckListItem::setOn(int column, bool b) { checkStates.setBit(column,b); checkBoxColumns.setBit(column); kdDebug(5009) << "setOn : " << column << endl; - repaint(); + tqrepaint(); } bool QMultiCheckListItem::isOn(int column) { @@ -74,7 +74,7 @@ void QMultiCheckListItem::toggle(int column) { checkStates.toggleBit(column); emit stateChanged(column,checkStates.testBit(column)); - repaint(); + tqrepaint(); } void QMultiCheckListItem::setDisabled(int column, bool b) { @@ -83,8 +83,8 @@ void QMultiCheckListItem::setDisabled(int column, bool b) { } disableStates.setBit(column,b); -// KMessageBox::information(0L,TQString("setDisabled"),TQString("disable %1 ").arg(column)); - repaint(); +// KMessageBox::information(0L,TQString("setDisabled"),TQString("disable %1 ").tqarg(column)); + tqrepaint(); } void QMultiCheckListItem::paintCell(TQPainter *p,const TQColorGroup & cg, int col, int width, int align) diff --git a/filesharing/advanced/kcm_sambaconf/sambafile.cpp b/filesharing/advanced/kcm_sambaconf/sambafile.cpp index 4703716b..50df27c0 100644 --- a/filesharing/advanced/kcm_sambaconf/sambafile.cpp +++ b/filesharing/advanced/kcm_sambaconf/sambafile.cpp @@ -174,14 +174,14 @@ bool SambaFile::slotApply() kdDebug(5009) << "SambaFile::slotApply: is local file!" << endl; TQString suCommand=TQString("cp %1 %2; rm %3") - .arg(_tempFile->name()) - .arg(path) - .arg(_tempFile->name()); + .tqarg(_tempFile->name()) + .tqarg(path) + .tqarg(_tempFile->name()); proc << "tdesu" << "-d" << suCommand; if (! proc.start(KProcess::Block)) { kdDebug(5009) << "SambaFile::slotApply: saving to " << path << " failed!" << endl; - //KMessageBox::sorry(0,i18n("Saving the results to %1 failed.").arg(path)); + //KMessageBox::sorry(0,i18n("Saving the results to %1 failed.").tqarg(path)); delete _tempFile; _tempFile = 0; return false; @@ -394,7 +394,7 @@ SambaShare* SambaFile::getTestParmValues(bool reload) void SambaFile::testParmStdOutReceived(KProcess *, char *buffer, int buflen) { - _parmOutput+=TQString::fromLatin1(buffer,buflen); + _parmOutput+=TQString::tqfromLatin1(buffer,buflen); } void SambaFile::parseParmStdOutput() @@ -506,7 +506,7 @@ bool SambaFile::openFile() { TQFile f(localPath); if (!f.open(IO_ReadOnly)) { - //throw SambaFileLoadException(TQString("Could not open file %1 for reading.").arg(path)); + //throw SambaFileLoadException(TQString("Could not open file %1 for reading.").tqarg(path)); return false; } diff --git a/filesharing/advanced/kcm_sambaconf/share.ui b/filesharing/advanced/kcm_sambaconf/share.ui index ba600d17..65fff9c5 100644 --- a/filesharing/advanced/kcm_sambaconf/share.ui +++ b/filesharing/advanced/kcm_sambaconf/share.ui @@ -304,7 +304,7 @@ Expanding - + 20 90 @@ -362,7 +362,7 @@ Expanding - + 50 20 @@ -540,7 +540,7 @@ Expanding - + 20 20 @@ -735,7 +735,7 @@ - layout18 + tqlayout18 @@ -799,7 +799,7 @@ - layout52 + tqlayout52 @@ -1050,7 +1050,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1072,7 +1072,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1086,7 +1086,7 @@ Only change something if you know what you are doing. forceCreateModeEdit - + 40 0 @@ -1100,7 +1100,7 @@ Only change something if you know what you are doing. forceSecurityModeEdit - + 40 0 @@ -1114,7 +1114,7 @@ Only change something if you know what you are doing. forceDirectoryModeEdit - + 40 0 @@ -1128,7 +1128,7 @@ Only change something if you know what you are doing. forceDirectorySecurityModeEdit - + 40 0 @@ -1150,7 +1150,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1172,7 +1172,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1194,7 +1194,7 @@ Only change something if you know what you are doing. Expanding - + 20 16 @@ -1272,7 +1272,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1294,7 +1294,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1316,7 +1316,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1330,7 +1330,7 @@ Only change something if you know what you are doing. securityMaskEdit - + 40 0 @@ -1344,7 +1344,7 @@ Only change something if you know what you are doing. directoryMaskEdit - + 40 0 @@ -1358,7 +1358,7 @@ Only change something if you know what you are doing. directorySecurityMaskEdit - + 40 0 @@ -1386,7 +1386,7 @@ Only change something if you know what you are doing. createMaskEdit - + 40 0 @@ -1408,7 +1408,7 @@ Only change something if you know what you are doing. 0 - + 20 0 @@ -1490,7 +1490,7 @@ Only change something if you know what you are doing. forceUnknownAclUserEdit - + 40 0 @@ -1676,7 +1676,7 @@ Only change something if you know what you are doing. Expanding - + 20 120 @@ -1759,7 +1759,7 @@ Only change something if you know what you are doing. Expanding - + 143 16 @@ -1933,7 +1933,7 @@ Only change something if you know what you are doing. Expanding - + 20 30 @@ -2024,7 +2024,7 @@ Only change something if you know what you are doing. manglingCharEdit - + 40 32767 @@ -2041,7 +2041,7 @@ Only change something if you know what you are doing. Expanding - + 20 0 @@ -2322,7 +2322,7 @@ Only change something if you know what you are doing. Expanding - + 20 20 @@ -2392,7 +2392,7 @@ Only change something if you know what you are doing. Expanding - + 299 20 @@ -2453,7 +2453,7 @@ Only change something if you know what you are doing. - layout9 + tqlayout9 @@ -2508,7 +2508,7 @@ Only change something if you know what you are doing. Expanding - + 40 20 @@ -2564,7 +2564,7 @@ Only change something if you know what you are doing. Expanding - + 20 260 @@ -2648,7 +2648,7 @@ Only change something if you know what you are doing. Expanding - + 16 284 @@ -2745,7 +2745,7 @@ Only change something if you know what you are doing. Expanding - + 20 50 @@ -2916,7 +2916,7 @@ Only change something if you know what you are doing. Expanding - + 20 0 diff --git a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp index ce2d15ad..55a1983c 100644 --- a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp +++ b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp b/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp index c9616a14..3805429b 100644 --- a/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp +++ b/filesharing/advanced/kcm_sambaconf/smbconfconfigwidget.cpp @@ -27,7 +27,7 @@ ******************************************************************************/ #include -#include +#include #include #include @@ -43,7 +43,7 @@ SmbConfConfigWidget::SmbConfConfigWidget(TQWidget* parent) : TQWidget(parent,"configWidget") { - TQVBoxLayout *layout = new TQVBoxLayout(this,5); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this,5); TQLabel *lbl = new TQLabel(i18n("

The SAMBA configuration file 'smb.conf'" \ " could not be found;

" \ @@ -59,9 +59,9 @@ SmbConfConfigWidget::SmbConfConfigWidget(TQWidget* parent) hbox->addStretch(); hbox->addWidget(btn); - layout->addWidget(lbl); - layout->addLayout(hbox); - layout->addStretch(); + tqlayout->addWidget(lbl); + tqlayout->addLayout(hbox); + tqlayout->addStretch(); } void SmbConfConfigWidget::btnPressed() { @@ -72,7 +72,7 @@ void SmbConfConfigWidget::btnPressed() { if (smbConf.isEmpty()) return; if ( ! TQFileInfo(smbConf).isReadable() ) { - KMessageBox::sorry(this,i18n("The file %1 could not be read.").arg(smbConf),i18n("Could Not Read File")); + KMessageBox::sorry(this,i18n("The file %1 could not be read.").tqarg(smbConf),i18n("Could Not Read File")); return; } diff --git a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp index f6a2282b..b964d700 100644 --- a/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp +++ b/filesharing/advanced/kcm_sambaconf/smbpasswdfile.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include @@ -175,7 +175,7 @@ bool SmbPasswdFile::changePassword(const SambaUser & user, const TQString & newP void SmbPasswdFile::smbpasswdStdOutReceived(KProcess *, char *buffer, int buflen) { - _smbpasswdOutput+=TQString::fromLatin1(buffer,buflen); + _smbpasswdOutput+=TQString::tqfromLatin1(buffer,buflen); } diff --git a/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui b/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui index e2d4be95..b04f8b7b 100644 --- a/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui @@ -238,7 +238,7 @@ Expanding - + 20 20 diff --git a/filesharing/advanced/kcm_sambaconf/userselectdlg.ui b/filesharing/advanced/kcm_sambaconf/userselectdlg.ui index 17d02c12..1526832a 100644 --- a/filesharing/advanced/kcm_sambaconf/userselectdlg.ui +++ b/filesharing/advanced/kcm_sambaconf/userselectdlg.ui @@ -183,7 +183,7 @@ Expanding - + 20 50 @@ -225,7 +225,7 @@ Expanding - + 285 20 diff --git a/filesharing/advanced/kcm_sambaconf/usertab.ui b/filesharing/advanced/kcm_sambaconf/usertab.ui index 57d8b591..af5b87bf 100644 --- a/filesharing/advanced/kcm_sambaconf/usertab.ui +++ b/filesharing/advanced/kcm_sambaconf/usertab.ui @@ -159,7 +159,7 @@ Expanding - + 20 100 diff --git a/filesharing/advanced/nfs/hostprops.ui b/filesharing/advanced/nfs/hostprops.ui index d3775c32..b7fd9f79 100644 --- a/filesharing/advanced/nfs/hostprops.ui +++ b/filesharing/advanced/nfs/hostprops.ui @@ -34,7 +34,7 @@ 0 - + 180 0 @@ -302,7 +302,7 @@ Early NFS client implementations did not send credentials with lock requests, an User Mapping - + AlignAuto @@ -348,7 +348,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap
- layout15 + tqlayout15 @@ -380,7 +380,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap 0 - + 50 0 @@ -394,7 +394,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap - layout16 + tqlayout16 @@ -426,7 +426,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap 0 - + 50 0 @@ -450,7 +450,7 @@ Map requests from uid/gid 0 to the anonymous uid/gid. Note that this does not ap Expanding - + 20 16 diff --git a/filesharing/advanced/nfs/nfsdialog.cpp b/filesharing/advanced/nfs/nfsdialog.cpp index 0dbd5b7a..ecc93a7d 100644 --- a/filesharing/advanced/nfs/nfsdialog.cpp +++ b/filesharing/advanced/nfs/nfsdialog.cpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include @@ -62,8 +62,8 @@ void NFSDialog::initGUI() { TQWidget* page = plainPage(); m_gui = new NFSDialogGUI(page); - TQVBoxLayout *layout = new TQVBoxLayout( page ); - layout->addWidget( m_gui ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( page ); + tqlayout->addWidget( m_gui ); KAccel* accel = new KAccel( m_gui->listView ); accel->insert( "Delete", TQt::Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(slotRemoveHost())); diff --git a/filesharing/advanced/nfs/nfsdialoggui.ui b/filesharing/advanced/nfs/nfsdialoggui.ui index ca77e192..a9295773 100644 --- a/filesharing/advanced/nfs/nfsdialoggui.ui +++ b/filesharing/advanced/nfs/nfsdialoggui.ui @@ -89,7 +89,7 @@ The first column shows the name or address of the host, the second column shows Expanding - + 20 40 diff --git a/filesharing/advanced/nfs/nfsentry.cpp b/filesharing/advanced/nfs/nfsentry.cpp index 397e19b4..b54a3169 100644 --- a/filesharing/advanced/nfs/nfsentry.cpp +++ b/filesharing/advanced/nfs/nfsentry.cpp @@ -125,10 +125,10 @@ TQString NFSHost::paramString() const if (!hide) s+="nohide,"; if (anongid!=65534) - s+=TQString("anongid=%1,").arg(anongid); + s+=TQString("anongid=%1,").tqarg(anongid); if (anonuid!=65534) - s+=TQString("anonuid=%1,").arg(anonuid); + s+=TQString("anonuid=%1,").tqarg(anonuid); // get rid of the last ',' s.truncate(s.length()-1); diff --git a/filesharing/advanced/nfs/nfsentry.h b/filesharing/advanced/nfs/nfsentry.h index 43071504..98d1e56a 100644 --- a/filesharing/advanced/nfs/nfsentry.h +++ b/filesharing/advanced/nfs/nfsentry.h @@ -74,7 +74,7 @@ typedef TQPtrListIterator NFSLineIterator; class NFSEmptyLine : public NFSLine { public: - virtual TQString toString() const { return TQString::fromLatin1("\n"); } + virtual TQString toString() const { return TQString::tqfromLatin1("\n"); } virtual ~NFSEmptyLine() {}; }; diff --git a/filesharing/advanced/nfs/nfsfile.cpp b/filesharing/advanced/nfs/nfsfile.cpp index 0c5f52eb..9eb674c8 100644 --- a/filesharing/advanced/nfs/nfsfile.cpp +++ b/filesharing/advanced/nfs/nfsfile.cpp @@ -23,7 +23,7 @@ #include #include -#include +#include #include #include @@ -241,8 +241,8 @@ bool NFSFile::save() KProcIO proc; TQString command = TQString("cp %1 %2") - .arg(KProcess::quote( tempFile.name() )) - .arg(KProcess::quote( _url.path() )); + .tqarg(KProcess::quote( tempFile.name() )) + .tqarg(KProcess::quote( _url.path() )); if (restartNFSServer) command +=";exportfs -ra"; diff --git a/filesharing/advanced/nfs/nfshostdlg.cpp b/filesharing/advanced/nfs/nfshostdlg.cpp index 09307e92..c4c1002d 100644 --- a/filesharing/advanced/nfs/nfshostdlg.cpp +++ b/filesharing/advanced/nfs/nfshostdlg.cpp @@ -16,7 +16,7 @@ ***************************************************************************/ #include -#include +#include #include #include #include @@ -41,8 +41,8 @@ NFSHostDlg::NFSHostDlg(TQWidget* parent, HostList* hosts, NFSEntry* entry) m_gui = new HostProps(page); - TQVBoxLayout *layout = new TQVBoxLayout( page, 0, 6 ); - layout->addWidget( m_gui ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( page, 0, 6 ); + tqlayout->addWidget( m_gui ); connect( m_gui, TQT_SIGNAL(modified()), this, TQT_SLOT(setModified())); @@ -156,14 +156,14 @@ bool NFSHostDlg::saveName(NFSHost* host) { TQString name = m_gui->nameEdit->text().stripWhiteSpace(); if (name.isEmpty()) { KMessageBox::sorry(this, - i18n("Please enter a hostname or an IP address.").arg(name), + i18n("Please enter a hostname or an IP address.").tqarg(name), i18n("No Hostname/IP-Address")); m_gui->nameEdit->setFocus(); return false; } else { NFSHost* host2 = m_nfsEntry->getHostByName(name); if (host2 && host2 != host) { - KMessageBox::sorry(this,i18n("The host '%1' already exists.").arg(name), + KMessageBox::sorry(this,i18n("The host '%1' already exists.").tqarg(name), i18n("Host Already Exists")); m_gui->nameEdit->setFocus(); return false; diff --git a/filesharing/advanced/propsdlgplugin/propertiespage.cpp b/filesharing/advanced/propsdlgplugin/propertiespage.cpp index 5ff1af7b..b52fd8fc 100644 --- a/filesharing/advanced/propsdlgplugin/propertiespage.cpp +++ b/filesharing/advanced/propsdlgplugin/propertiespage.cpp @@ -211,15 +211,15 @@ bool PropertiesPage::save(NFSFile* nfsFile, SambaFile* sambaFile, bool nfs, bool if (nfsNeedsKDEsu) { nfsFile->saveTo(nfsTempFile.name()); command += TQString("cp %1 %2;exportfs -ra;") - .arg(KProcess::quote( nfsTempFile.name() )) - .arg(KProcess::quote( nfsFileName )); + .tqarg(KProcess::quote( nfsTempFile.name() )) + .tqarg(KProcess::quote( nfsFileName )); } if (sambaNeedsKDEsu) { sambaFile->saveTo(sambaTempFile.name()); command += TQString("cp %1 %2;") - .arg(KProcess::quote( sambaTempFile.name() )) - .arg(KProcess::quote( sambaFileName )); + .tqarg(KProcess::quote( sambaTempFile.name() )) + .tqarg(KProcess::quote( sambaFileName )); } proc<<"tdesu" << "-d" << "-c"<getShare(sambaNameEdit->text()); if (otherShare && otherShare != m_sambaShare) { // There is another Share with the same name - KMessageBox::sorry(this, i18n("There is already a share with the name %1.
Please choose another name.
").arg(sambaNameEdit->text())); + KMessageBox::sorry(this, i18n("There is already a share with the name %1.
Please choose another name.
").tqarg(sambaNameEdit->text())); sambaNameEdit->selectAll(); sambaNameEdit->setFocus(); return false; diff --git a/filesharing/advanced/propsdlgplugin/propertiespagegui.ui b/filesharing/advanced/propsdlgplugin/propertiespagegui.ui index a41de020..3ba4aca5 100644 --- a/filesharing/advanced/propsdlgplugin/propertiespagegui.ui +++ b/filesharing/advanced/propsdlgplugin/propertiespagegui.ui @@ -21,7 +21,7 @@
- layout6 + tqlayout6 @@ -108,7 +108,7 @@ - layout6 + tqlayout6 @@ -146,7 +146,7 @@ Expanding - + 40 20 @@ -157,7 +157,7 @@ - layout4 + tqlayout4 @@ -181,7 +181,7 @@ Expanding - + 156 20 @@ -216,7 +216,7 @@ - layout3 + tqlayout3 @@ -239,7 +239,7 @@ - layout5 + tqlayout5 @@ -277,7 +277,7 @@ Expanding - + 40 20 @@ -288,7 +288,7 @@ - layout3 + tqlayout3 @@ -312,7 +312,7 @@ Expanding - + 40 20 @@ -335,7 +335,7 @@ Expanding - + 20 1 diff --git a/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp b/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp index f9baf270..2af403f5 100644 --- a/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp +++ b/filesharing/advanced/propsdlgplugin/propsdlgshareplugin.cpp @@ -18,7 +18,7 @@ */ #include #include -#include +#include #include #include diff --git a/filesharing/simple/controlcenter.ui b/filesharing/simple/controlcenter.ui index 7eec18af..26307437 100644 --- a/filesharing/simple/controlcenter.ui +++ b/filesharing/simple/controlcenter.ui @@ -29,7 +29,7 @@ SMB and NFS servers are not installed on this machine, to enable this module the servers must be installed. - + WordBreak|AlignVCenter @@ -66,7 +66,7 @@ - layout4 + tqlayout4 @@ -84,7 +84,7 @@ 0 - + 11 0 @@ -112,7 +112,7 @@ Enable simple sharing to allow users to share folders from their HOME folder, without knowing the root password. - + WordBreak|AlignVCenter @@ -131,7 +131,7 @@ - layout4_2 + tqlayout4_2 @@ -149,7 +149,7 @@ 0 - + 11 0 @@ -177,7 +177,7 @@ Enable advanced sharing to allow users to share any folders, as long as they have write access to the needed configuration files, or they know the root password. - + WordBreak|AlignVCenter @@ -185,7 +185,7 @@
- layout3 + tqlayout3 @@ -203,7 +203,7 @@ 0 - + 11 0 @@ -251,7 +251,7 @@ - layout10 + tqlayout10 @@ -275,7 +275,7 @@ Expanding - + 40 20 @@ -398,7 +398,7 @@ Expanding - + 20 20 diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp index 6b24d656..0e41554d 100644 --- a/filesharing/simple/fileshare.cpp +++ b/filesharing/simple/fileshare.cpp @@ -16,7 +16,7 @@ */ #include -#include +#include #include #include #include @@ -65,13 +65,13 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS { KGlobal::locale()->insertCatalogue("kfileshare"); - TQBoxLayout* layout = new TQVBoxLayout(this,0, + TQBoxLayout* tqlayout = new TQVBoxLayout(this,0, KDialog::spacingHint()); /* TQVButtonGroup *box = new TQVButtonGroup( i18n("File Sharing"), this ); - box->layout()->setSpacing( KDialog::spacingHint() ); - layout->addWidget(box); + box->tqlayout()->setSpacing( KDialog::spacingHint() ); + tqlayout->addWidget(box); noSharing=new TQRadioButton( i18n("Do ¬ allow users to share files"), box ); sharing=new TQRadioButton( i18n("&Allow users to share files from their HOME folder"), box); */ @@ -81,9 +81,9 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS this, TQT_SLOT(allowedUsersBtnClicked())); TQString path = TQString::fromLocal8Bit( getenv( "PATH" ) ); - path += TQString::fromLatin1(":/usr/sbin"); - TQString sambaExec = KStandardDirs::findExe( TQString::fromLatin1("smbd"), path ); - TQString nfsExec = KStandardDirs::findExe( TQString::fromLatin1("rpc.nfsd"), path ); + path += TQString::tqfromLatin1(":/usr/sbin"); + TQString sambaExec = KStandardDirs::findExe( TQString::tqfromLatin1("smbd"), path ); + TQString nfsExec = KStandardDirs::findExe( TQString::tqfromLatin1("rpc.nfsd"), path ); if ( nfsExec.isEmpty() && sambaExec.isEmpty()) { @@ -106,7 +106,7 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS } m_ccgui->infoLbl->hide(); - layout->addWidget(m_ccgui); + tqlayout->addWidget(m_ccgui); updateShareListView(); connect( KNFSShare::instance(), TQT_SIGNAL( changed()), this, TQT_SLOT(updateShareListView())); @@ -196,7 +196,7 @@ void KFileShareConfig::allowedUsersBtnClicked() { void KFileShareConfig::load() { - KSimpleConfig config(TQString::fromLatin1(FILESHARECONF),true); + KSimpleConfig config(TQString::tqfromLatin1(FILESHARECONF),true); m_ccgui->shareGrp->setChecked( config.readEntry("FILESHARING", "yes") == "yes" ); @@ -299,7 +299,7 @@ void KFileShareConfig::save() if ( ! file.open(IO_WriteOnly)) { KMessageBox::detailedError(this, i18n("Could not save settings."), - i18n("Could not open file '%1' for writing: %2").arg(FILESHARECONF).arg( + i18n("Could not open file '%1' for writing: %2").tqarg(FILESHARECONF).tqarg( file.errorString() ), i18n("Saving Failed")); return; diff --git a/filesharing/simple/groupconfigdlg.cpp b/filesharing/simple/groupconfigdlg.cpp index a57d0f79..1efe2baa 100644 --- a/filesharing/simple/groupconfigdlg.cpp +++ b/filesharing/simple/groupconfigdlg.cpp @@ -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; @@ -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 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(), 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(), 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(), 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)); } diff --git a/filesharing/simple/groupconfiggui.ui b/filesharing/simple/groupconfiggui.ui index 13b26dc3..7550cab0 100644 --- a/filesharing/simple/groupconfiggui.ui +++ b/filesharing/simple/groupconfiggui.ui @@ -86,7 +86,7 @@ Expanding - + 20 20 @@ -124,7 +124,7 @@ - layout2 + tqlayout2 @@ -140,7 +140,7 @@ Expanding - + 180 20 diff --git a/filesharing/simple/krichtextlabel.cpp b/filesharing/simple/krichtextlabel.cpp index dd9268b6..3d9dfcd0 100644 --- a/filesharing/simple/krichtextlabel.cpp +++ b/filesharing/simple/krichtextlabel.cpp @@ -19,7 +19,7 @@ #include "krichtextlabel.h" #include -#include +#include #include #include @@ -41,14 +41,14 @@ static TQString qrichtextify( const TQString& text ) KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5); - setAlignment( TQt::WordBreak ); + tqsetAlignment( TQt::WordBreak ); setText(text); } KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { m_defaultWidth = TQMIN(400, KGlobalSettings::desktopGeometry(this).width()*2/5); - setAlignment( TQt::WordBreak ); + tqsetAlignment( TQt::WordBreak ); } void KRichTextLabel::setDefaultWidth(int defaultWidth) @@ -62,7 +62,7 @@ TQSizePolicy KRichTextLabel::sizePolicy() const return TQSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Minimum, false); } -TQSize KRichTextLabel::minimumSizeHint() const +TQSize KRichTextLabel::tqminimumSizeHint() const { TQString qt_text = qrichtextify( text() ); int pref_width = 0; @@ -97,9 +97,9 @@ TQSize KRichTextLabel::minimumSizeHint() const return TQSize(pref_width, rt.height()); } -TQSize KRichTextLabel::sizeHint() const +TQSize KRichTextLabel::tqsizeHint() const { - return minimumSizeHint(); + return tqminimumSizeHint(); } void KRichTextLabel::setText( const TQString &text ) { diff --git a/filesharing/simple/krichtextlabel.h b/filesharing/simple/krichtextlabel.h index 513e1280..53a60cea 100644 --- a/filesharing/simple/krichtextlabel.h +++ b/filesharing/simple/krichtextlabel.h @@ -24,7 +24,7 @@ #include /** - * @short A replacement for TQLabel that supports richtext and proper layout management + * @short A replacement for TQLabel that supports richtext and proper tqlayout management * * @author Waldo Bastian */ @@ -46,8 +46,8 @@ public: int defaultWidth() const { return m_defaultWidth; } void setDefaultWidth(int defaultWidth); - virtual TQSize minimumSizeHint() const; - virtual TQSize sizeHint() const; + virtual TQSize tqminimumSizeHint() const; + virtual TQSize tqsizeHint() const; TQSizePolicy sizePolicy() const; public slots: -- cgit v1.2.1