summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/dictmanager.cpp')
-rw-r--r--filesharing/advanced/kcm_sambaconf/dictmanager.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
index 1b252ed5..c2437f04 100644
--- a/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
+++ b/filesharing/advanced/kcm_sambaconf/dictmanager.cpp
@@ -27,12 +27,12 @@
******************************************************************************/
-#include <qlineedit.h>
-#include <qcheckbox.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qtooltip.h>
-#include <qstringlist.h>
+#include <tqlineedit.h>
+#include <tqcheckbox.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqtooltip.h>
+#include <tqstringlist.h>
#include <kurlrequester.h>
#include <klocale.h>
@@ -56,73 +56,73 @@ DictManager::DictManager(SambaShare* share):
DictManager::~DictManager() {
}
-void DictManager::handleUnsupportedWidget(const QString & s, QWidget* w) {
+void DictManager::handleUnsupportedWidget(const TQString & s, TQWidget* w) {
w->setEnabled(false);
- QToolTip::add(w,i18n("The option <em>%1</em> is not supported by your Samba version").arg(s));
+ TQToolTip::add(w,i18n("The option <em>%1</em> is not supported by your Samba version").arg(s));
}
-void DictManager::add(const QString & key, QLineEdit* lineEdit) {
+void DictManager::add(const TQString & key, TQLineEdit* lineEdit) {
if (_share->optionSupported(key)) {
lineEditDict.insert(key,lineEdit);
- connect(lineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(changedSlot()));
+ connect(lineEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changedSlot()));
} else
handleUnsupportedWidget(key,lineEdit);
}
-void DictManager::add(const QString & key, QCheckBox* checkBox){
+void DictManager::add(const TQString & key, TQCheckBox* checkBox){
if (_share->optionSupported(key)) {
checkBoxDict.insert(key,checkBox);
- connect(checkBox, SIGNAL(clicked()), this, SLOT(changedSlot()));
+ connect(checkBox, TQT_SIGNAL(clicked()), this, TQT_SLOT(changedSlot()));
} else
handleUnsupportedWidget(key,checkBox);
}
-void DictManager::add(const QString & key, KURLRequester* urlRq){
+void DictManager::add(const TQString & key, KURLRequester* urlRq){
if (_share->optionSupported(key)) {
urlRequesterDict.insert(key,urlRq);
- connect(urlRq, SIGNAL(textChanged(const QString &)), this, SLOT(changedSlot()));
+ connect(urlRq, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(changedSlot()));
} else
handleUnsupportedWidget(key,urlRq);
}
-void DictManager::add(const QString & key, QSpinBox* spinBox){
+void DictManager::add(const TQString & key, TQSpinBox* spinBox){
if (_share->optionSupported(key)) {
spinBoxDict.insert(key,spinBox);
- connect(spinBox, SIGNAL(valueChanged(int)), this, SLOT(changedSlot()));
+ connect(spinBox, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changedSlot()));
} else
handleUnsupportedWidget(key,spinBox);
}
-void DictManager::add(const QString & key, QComboBox* comboBox, QStringList* values){
+void DictManager::add(const TQString & key, TQComboBox* comboBox, TQStringList* values){
if (_share->optionSupported(key)) {
comboBoxDict.insert(key,comboBox);
comboBoxValuesDict.insert(key,values);
- connect(comboBox, SIGNAL(activated(int)), this, SLOT(changedSlot()));
+ connect(comboBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(changedSlot()));
} else
handleUnsupportedWidget(key,comboBox);
}
void DictManager::load(SambaShare* share, bool globalValue, bool defaultValue){
- QDictIterator<QCheckBox> checkBoxIt( checkBoxDict );
+ TQDictIterator<TQCheckBox> checkBoxIt( checkBoxDict );
for( ; checkBoxIt.current(); ++checkBoxIt ) {
checkBoxIt.current()->setChecked(share->getBoolValue(checkBoxIt.currentKey(),globalValue,defaultValue));
}
- QDictIterator<QLineEdit> lineEditIt( lineEditDict );
+ TQDictIterator<TQLineEdit> lineEditIt( lineEditDict );
for( ; lineEditIt.current(); ++lineEditIt ) {
lineEditIt.current()->setText(share->getValue(lineEditIt.currentKey(),globalValue,defaultValue));
}
- QDictIterator<KURLRequester> urlRequesterIt( urlRequesterDict );
+ TQDictIterator<KURLRequester> urlRequesterIt( urlRequesterDict );
for( ; urlRequesterIt.current(); ++urlRequesterIt ) {
urlRequesterIt.current()->setURL(share->getValue(urlRequesterIt.currentKey(),globalValue,defaultValue));
}
- QDictIterator<QSpinBox> spinBoxIt( spinBoxDict );
+ TQDictIterator<TQSpinBox> spinBoxIt( spinBoxDict );
for( ; spinBoxIt.current(); ++spinBoxIt ) {
spinBoxIt.current()->setValue(share->getValue(spinBoxIt.currentKey(),globalValue,defaultValue).toInt());
@@ -133,11 +133,11 @@ void DictManager::load(SambaShare* share, bool globalValue, bool defaultValue){
}
void DictManager::loadComboBoxes(SambaShare* share, bool globalValue, bool defaultValue) {
- QDictIterator<QComboBox> comboBoxIt( comboBoxDict );
+ TQDictIterator<TQComboBox> comboBoxIt( comboBoxDict );
for( ; comboBoxIt.current(); ++comboBoxIt ) {
- QStringList *v = comboBoxValuesDict[comboBoxIt.currentKey()];
- QString value = share->getValue(comboBoxIt.currentKey(),globalValue,defaultValue);
+ TQStringList *v = comboBoxValuesDict[comboBoxIt.currentKey()];
+ TQString value = share->getValue(comboBoxIt.currentKey(),globalValue,defaultValue);
if (value.isNull())
continue;
@@ -147,9 +147,9 @@ void DictManager::loadComboBoxes(SambaShare* share, bool globalValue, bool defau
int comboIndex = 0;
- QStringList::iterator it;
+ TQStringList::iterator it;
for ( it = v->begin(); it != v->end(); ++it ) {
- QString lower = (*it).lower();
+ TQString lower = (*it).lower();
if ( lower == "yes" &&
boolFromText(value))
break;
@@ -170,34 +170,34 @@ void DictManager::loadComboBoxes(SambaShare* share, bool globalValue, bool defau
void DictManager::save(SambaShare* share, bool globalValue, bool defaultValue){
- QDictIterator<QCheckBox> checkBoxIt( checkBoxDict );
+ TQDictIterator<TQCheckBox> checkBoxIt( checkBoxDict );
for( ; checkBoxIt.current(); ++checkBoxIt ) {
share->setValue(checkBoxIt.currentKey(),checkBoxIt.current()->isChecked(), globalValue, defaultValue );
}
- QDictIterator<QLineEdit> lineEditIt( lineEditDict );
+ TQDictIterator<TQLineEdit> lineEditIt( lineEditDict );
for( ; lineEditIt.current(); ++lineEditIt ) {
share->setValue(lineEditIt.currentKey(),lineEditIt.current()->text(), globalValue, defaultValue );
}
- QDictIterator<KURLRequester> urlRequesterIt( urlRequesterDict );
+ TQDictIterator<KURLRequester> urlRequesterIt( urlRequesterDict );
for( ; urlRequesterIt.current(); ++urlRequesterIt ) {
share->setValue(urlRequesterIt.currentKey(),urlRequesterIt.current()->url(), globalValue, defaultValue );
}
- QDictIterator<QSpinBox> spinBoxIt( spinBoxDict );
+ TQDictIterator<TQSpinBox> spinBoxIt( spinBoxDict );
for( ; spinBoxIt.current(); ++spinBoxIt ) {
share->setValue(spinBoxIt.currentKey(),spinBoxIt.current()->value(), globalValue, defaultValue );
}
- QDictIterator<QComboBox> comboBoxIt( comboBoxDict );
+ TQDictIterator<TQComboBox> comboBoxIt( comboBoxDict );
for( ; comboBoxIt.current(); ++comboBoxIt ) {
- QStringList* values = comboBoxValuesDict[comboBoxIt.currentKey()];
+ TQStringList* values = comboBoxValuesDict[comboBoxIt.currentKey()];
int i = comboBoxIt.current()->currentItem();
share->setValue(comboBoxIt.currentKey(),(*values)[i], globalValue, defaultValue );