summaryrefslogtreecommitdiffstats
path: root/filesharing/simple/fileshare.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/simple/fileshare.cpp')
-rw-r--r--filesharing/simple/fileshare.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp
index 0e41554d..6b24d656 100644
--- a/filesharing/simple/fileshare.cpp
+++ b/filesharing/simple/fileshare.cpp
@@ -16,7 +16,7 @@
*/
#include <unistd.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqvbuttongroup.h>
#include <tqvgroupbox.h>
#include <tqlabel.h>
@@ -65,13 +65,13 @@ KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQS
{
KGlobal::locale()->insertCatalogue("kfileshare");
- TQBoxLayout* tqlayout = new TQVBoxLayout(this,0,
+ TQBoxLayout* layout = new TQVBoxLayout(this,0,
KDialog::spacingHint());
/*
TQVButtonGroup *box = new TQVButtonGroup( i18n("File Sharing"), this );
- box->tqlayout()->setSpacing( KDialog::spacingHint() );
- tqlayout->addWidget(box);
+ box->layout()->setSpacing( KDialog::spacingHint() );
+ layout->addWidget(box);
noSharing=new TQRadioButton( i18n("Do &not 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::tqfromLatin1(":/usr/sbin");
- TQString sambaExec = KStandardDirs::findExe( TQString::tqfromLatin1("smbd"), path );
- TQString nfsExec = KStandardDirs::findExe( TQString::tqfromLatin1("rpc.nfsd"), path );
+ path += TQString::fromLatin1(":/usr/sbin");
+ TQString sambaExec = KStandardDirs::findExe( TQString::fromLatin1("smbd"), path );
+ TQString nfsExec = KStandardDirs::findExe( TQString::fromLatin1("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();
- tqlayout->addWidget(m_ccgui);
+ layout->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::tqfromLatin1(FILESHARECONF),true);
+ KSimpleConfig config(TQString::fromLatin1(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").tqarg(FILESHARECONF).tqarg(
+ i18n("Could not open file '%1' for writing: %2").arg(FILESHARECONF).arg(
file.errorString() ),
i18n("Saving Failed"));
return;