summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/nfs/nfshostdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /filesharing/advanced/nfs/nfshostdlg.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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)