diff options
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp')
-rw-r--r-- | filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp index 73ba4741..8640f41b 100644 --- a/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp +++ b/filesharing/advanced/kcm_sambaconf/sharedlgimpl.cpp @@ -31,24 +31,24 @@ * @author Jan Schäfer **/ -#include <qcheckbox.h> -#include <qlineedit.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qlayout.h> -#include <qtabwidget.h> -#include <qregexp.h> -#include <qstringlist.h> -#include <qgrid.h> -#include <qcursor.h> -#include <qtable.h> -#include <qlistbox.h> -#include <qtoolbutton.h> -#include <qpixmap.h> -#include <qframe.h> -#include <qwidget.h> -#include <qtabwidget.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqlayout.h> +#include <tqtabwidget.h> +#include <tqregexp.h> +#include <tqstringlist.h> +#include <tqgrid.h> +#include <tqcursor.h> +#include <tqtable.h> +#include <tqlistbox.h> +#include <tqtoolbutton.h> +#include <tqpixmap.h> +#include <tqframe.h> +#include <tqwidget.h> +#include <tqtabwidget.h> #include <klineedit.h> @@ -80,7 +80,7 @@ -ShareDlgImpl::ShareDlgImpl(QWidget* parent, SambaShare* share) +ShareDlgImpl::ShareDlgImpl(TQWidget* parent, SambaShare* share) : KcmShareDlg(parent,"sharedlgimpl") { if (!share) { @@ -122,12 +122,12 @@ void ShareDlgImpl::initDialog() _userTab = new UserTabImpl(this,_share); _tabs->insertTab(_userTab,i18n("&Users"),1); _userTab->load(); - connect(_userTab, SIGNAL(changed()), this, SLOT(changedSlot())); + connect(_userTab, TQT_SIGNAL(changed()), this, TQT_SLOT(changedSlot())); // Filename settings _dictMngr->add("case sensitive",caseSensitiveCombo, - new QStringList(QStringList() << "auto" << "yes" << "no")); + new TQStringList(TQStringList() << "auto" << "yes" << "no")); _dictMngr->add("preserve case",preserveCaseChk); _dictMngr->add("short preserve case",shortPreserveCaseChk); _dictMngr->add("mangled names",mangledNamesChk); @@ -137,10 +137,10 @@ void ShareDlgImpl::initDialog() _dictMngr->add("mangling method",manglingMethodCombo, - new QStringList(QStringList() << "hash" << "hash2")); + new TQStringList(TQStringList() << "hash" << "hash2")); _dictMngr->add("default case",defaultCaseCombo, - new QStringList(QStringList() << "Lower" << "Upper")); + new TQStringList(TQStringList() << "Lower" << "Upper")); _dictMngr->add("hide dot files",hideDotFilesChk); _dictMngr->add("strip dot",hideTrailingDotChk); @@ -202,7 +202,7 @@ void ShareDlgImpl::initDialog() _dictMngr->add("level2 oplocks",level2OplocksChk); _dictMngr->add("posix locking",posixLockingChk); _dictMngr->add("strict locking",strictLockingCombo, - new QStringList(QStringList() << "Auto" << "yes" << "no")); + new TQStringList(TQStringList() << "Auto" << "yes" << "no")); _dictMngr->add("share modes",shareModesChk); _dictMngr->add("oplocks",oplocksChk); @@ -223,7 +223,7 @@ void ShareDlgImpl::initDialog() _dictMngr->add("use sendfile",useSendfileChk); _dictMngr->add("csc policy",cscPolicyCombo, - new QStringList(QStringList() << "manual" << "documents" << "programs" << "disable")); + new TQStringList(TQStringList() << "manual" << "documents" << "programs" << "disable")); @@ -256,8 +256,8 @@ void ShareDlgImpl::initDialog() _dictMngr->load( _share ); - connect( _tabs, SIGNAL(currentChanged(QWidget*)), this, SLOT(tabChangedSlot(QWidget*))); - connect(_dictMngr, SIGNAL(changed()), this, SLOT(changedSlot())); + connect( _tabs, TQT_SIGNAL(currentChanged(TQWidget*)), this, TQT_SLOT(tabChangedSlot(TQWidget*))); + connect(_dictMngr, TQT_SIGNAL(changed()), this, TQT_SLOT(changedSlot())); } ShareDlgImpl::~ShareDlgImpl() @@ -268,17 +268,17 @@ ShareDlgImpl::~ShareDlgImpl() void ShareDlgImpl::initAdvancedTab() { - QVBoxLayout *l = new QVBoxLayout(advancedFrame); + TQVBoxLayout *l = new TQVBoxLayout(advancedFrame); l->setAutoAdd(true); l->setMargin(0); _janus = new KJanusWidget(advancedFrame,0,KJanusWidget::TreeList); _janus->setRootIsDecorated(false); _janus->setShowIconsInTreeList(true); - QWidget *w; - QFrame *f; - QString label; - QPixmap icon; + TQWidget *w; + TQFrame *f; + TQString label; + TQPixmap icon; for (int i=0;i<advancedDumpTab->count();) { @@ -321,19 +321,19 @@ void ShareDlgImpl::initAdvancedTab() if (label.lower() == "misc") icon = SmallIcon("misc"); else { - icon = QPixmap(16,16); + icon = TQPixmap(16,16); icon.fill(); } //SmallIcon("empty2"); f = _janus->addPage( label,label,icon ); - l = new QVBoxLayout(f); + l = new TQVBoxLayout(f); l->setAutoAdd(true); l->setMargin(0); advancedDumpTab->removePage(w); - w->reparent(f,QPoint(1,1),TRUE); + w->reparent(f,TQPoint(1,1),TRUE); } @@ -345,10 +345,10 @@ void ShareDlgImpl::initAdvancedTab() } -void ShareDlgImpl::tabChangedSlot(QWidget* w) +void ShareDlgImpl::tabChangedSlot(TQWidget* w) { // We are only interrested in the Hidden files tab - if ( QString(w->name()) == "hiddenFilesTab" ) + if ( TQString(w->name()) == "hiddenFilesTab" ) loadHiddenFilesView(); } @@ -418,15 +418,15 @@ void ShareDlgImpl::homeChkToggled(bool b) void ShareDlgImpl::accessModifierBtnClicked() { - if (!QObject::sender()) { - kdWarning() << "ShareDlgImpl::accessModifierBtnClicked() : QObject::sender() is null!" << endl; + if (!TQObject::sender()) { + kdWarning() << "ShareDlgImpl::accessModifierBtnClicked() : TQObject::sender() is null!" << endl; return; } - QString name = QObject::sender()->name(); + TQString name = TQObject::sender()->name(); - QLineEdit *edit = 0L; + TQLineEdit *edit = 0L; if (name == "forceCreateModeBtn") edit = forceCreateModeEdit; @@ -468,7 +468,7 @@ void ShareDlgImpl::changedSlot() { emit changed(); } -void ShareDlgImpl::pathUrlRq_textChanged( const QString & s) +void ShareDlgImpl::pathUrlRq_textChanged( const TQString & s) { if (_fileView && ! _share->isSpecialSection()) _fileView->load(); |