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.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/filesharing/simple/fileshare.cpp b/filesharing/simple/fileshare.cpp
index 5b796823..2e332dd7 100644
--- a/filesharing/simple/fileshare.cpp
+++ b/filesharing/simple/fileshare.cpp
@@ -60,18 +60,18 @@ K_EXPORT_COMPONENT_FACTORY (kcm_fileshare, ShareFactory("kcmfileshare") )
#define FILESHARECONF "/etc/security/fileshare.conf"
#define FILESHARE_DEBUG 5009
-KFileShareConfig::KFileShareConfig(TQWidget *parent, const char *name, const TQStringList &):
- KCModule(ShareFactory::instance(), parent, name)
+KFileShareConfig::KFileShareConfig(TQWidget *tqparent, const char *name, const TQStringList &):
+ KCModule(ShareFactory::instance(), tqparent, name)
{
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 &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::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;
@@ -354,8 +354,8 @@ void KFileShareConfig::addShareBtnClicked() {
}
-PropertiesPageDlg::PropertiesPageDlg(TQWidget*parent, KFileItemList files)
- : KDialogBase(parent, "sharedlg", true,
+PropertiesPageDlg::PropertiesPageDlg(TQWidget*tqparent, KFileItemList files)
+ : KDialogBase(tqparent, "sharedlg", true,
i18n("Share Folder"), Ok|Cancel, Ok, true)
{
TQVBox* vbox = makeVBoxMainWidget();