summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/nfs/nfshostdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/nfs/nfshostdlg.cpp')
-rw-r--r--filesharing/advanced/nfs/nfshostdlg.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/filesharing/advanced/nfs/nfshostdlg.cpp b/filesharing/advanced/nfs/nfshostdlg.cpp
index 073170d6..b2205f25 100644
--- a/filesharing/advanced/nfs/nfshostdlg.cpp
+++ b/filesharing/advanced/nfs/nfshostdlg.cpp
@@ -15,11 +15,11 @@
* *
***************************************************************************/
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qwhatsthis.h>
-#include <qgroupbox.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqwhatsthis.h>
+#include <tqgroupbox.h>
#include <klocale.h>
#include <kdebug.h>
@@ -32,19 +32,19 @@
#include "nfsentry.h"
-NFSHostDlg::NFSHostDlg(QWidget* parent, HostList* hosts, NFSEntry* entry)
+NFSHostDlg::NFSHostDlg(TQWidget* parent, HostList* hosts, NFSEntry* entry)
: KDialogBase(Plain, i18n("Host Properties"), Ok|Cancel, Ok, parent),
m_hosts(hosts), m_nfsEntry(entry), m_modified(false)
{
- QWidget* page = plainPage();
+ TQWidget* page = plainPage();
m_gui = new HostProps(page);
- QVBoxLayout *layout = new QVBoxLayout( page, 0, 6 );
+ TQVBoxLayout *layout = new TQVBoxLayout( page, 0, 6 );
layout->addWidget( m_gui );
- connect( m_gui, SIGNAL(modified()), this, SLOT(setModified()));
+ connect( m_gui, TQT_SIGNAL(modified()), this, TQT_SLOT(setModified()));
init();
@@ -96,11 +96,11 @@ void NFSHostDlg::setHostValues(NFSHost* host) {
setCheckBoxValue(m_gui->syncChk, host->sync);
setCheckBoxValue(m_gui->wdelayChk, ! host->wdelay);
- setEditValue(m_gui->anonuidEdit,QString::number(host->anonuid));
- setEditValue(m_gui->anongidEdit,QString::number(host->anongid));
+ setEditValue(m_gui->anonuidEdit,TQString::number(host->anonuid));
+ setEditValue(m_gui->anongidEdit,TQString::number(host->anongid));
}
-void NFSHostDlg::setEditValue(QLineEdit* edit, const QString & value) {
+void NFSHostDlg::setEditValue(TQLineEdit* edit, const TQString & value) {
if (edit->text().isEmpty())
return;
@@ -108,11 +108,11 @@ void NFSHostDlg::setEditValue(QLineEdit* edit, const QString & value) {
edit->setText(value);
else
if (edit->text() != value)
- edit->setText(QString::null);
+ edit->setText(TQString::null);
}
-void NFSHostDlg::setCheckBoxValue(QCheckBox* chk, bool value) {
- if (chk->state() == QButton::NoChange)
+void NFSHostDlg::setCheckBoxValue(TQCheckBox* chk, bool value) {
+ if (chk->state() == TQButton::NoChange)
return;
if (chk->isChecked()) {
@@ -153,7 +153,7 @@ bool NFSHostDlg::saveName(NFSHost* host) {
}
host->name="*";
} else {
- QString name = m_gui->nameEdit->text().stripWhiteSpace();
+ TQString name = m_gui->nameEdit->text().stripWhiteSpace();
if (name.isEmpty()) {
KMessageBox::sorry(this,
i18n("Please enter a hostname or an IP address.").arg(name),
@@ -192,15 +192,15 @@ void NFSHostDlg::saveValues(NFSHost* host) {
saveEditValue(host->anongid,m_gui->anongidEdit);
}
-void NFSHostDlg::saveEditValue(int & value, QLineEdit* edit) {
+void NFSHostDlg::saveEditValue(int & value, TQLineEdit* edit) {
if ( edit->text().isEmpty())
return;
value = edit->text().toInt();
}
-void NFSHostDlg::saveCheckBoxValue(bool & value, QCheckBox* chk, bool neg) {
- if (chk->state() == QButton::NoChange)
+void NFSHostDlg::saveCheckBoxValue(bool & value, TQCheckBox* chk, bool neg) {
+ if (chk->state() == TQButton::NoChange)
return;
if (neg)