diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 00:30:31 +0000 |
commit | 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch) | |
tree | 073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /filesharing/advanced/nfs/nfshostdlg.cpp | |
parent | 3467e6464beac3a162839bf7078e22e3a74d73e7 (diff) | |
download | tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip |
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filesharing/advanced/nfs/nfshostdlg.cpp')
-rw-r--r-- | filesharing/advanced/nfs/nfshostdlg.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/filesharing/advanced/nfs/nfshostdlg.cpp b/filesharing/advanced/nfs/nfshostdlg.cpp index b2205f25..e13be0c7 100644 --- a/filesharing/advanced/nfs/nfshostdlg.cpp +++ b/filesharing/advanced/nfs/nfshostdlg.cpp @@ -32,8 +32,8 @@ #include "nfsentry.h" -NFSHostDlg::NFSHostDlg(TQWidget* parent, HostList* hosts, NFSEntry* entry) - : KDialogBase(Plain, i18n("Host Properties"), Ok|Cancel, Ok, parent), +NFSHostDlg::NFSHostDlg(TQWidget* tqparent, HostList* hosts, NFSEntry* entry) + : KDialogBase(Plain, i18n("Host Properties"), Ok|Cancel, Ok, tqparent), m_hosts(hosts), m_nfsEntry(entry), m_modified(false) { @@ -41,8 +41,8 @@ NFSHostDlg::NFSHostDlg(TQWidget* parent, HostList* hosts, NFSEntry* entry) m_gui = new HostProps(page); - TQVBoxLayout *layout = new TQVBoxLayout( page, 0, 6 ); - layout->addWidget( m_gui ); + TQVBoxLayout *tqlayout = new TQVBoxLayout( page, 0, 6 ); + tqlayout->addWidget( m_gui ); connect( m_gui, TQT_SIGNAL(modified()), this, TQT_SLOT(setModified())); @@ -108,7 +108,7 @@ void NFSHostDlg::setEditValue(TQLineEdit* edit, const TQString & value) { edit->setText(value); else if (edit->text() != value) - edit->setText(TQString::null); + edit->setText(TQString()); } void NFSHostDlg::setCheckBoxValue(TQCheckBox* chk, bool value) { @@ -156,14 +156,14 @@ bool NFSHostDlg::saveName(NFSHost* host) { TQString name = m_gui->nameEdit->text().stripWhiteSpace(); if (name.isEmpty()) { KMessageBox::sorry(this, - i18n("Please enter a hostname or an IP address.").arg(name), + i18n("Please enter a hostname or an IP address.").tqarg(name), i18n("No Hostname/IP-Address")); m_gui->nameEdit->setFocus(); return false; } else { NFSHost* host2 = m_nfsEntry->getHostByName(name); if (host2 && host2 != host) { - KMessageBox::sorry(this,i18n("The host '%1' already exists.").arg(name), + KMessageBox::sorry(this,i18n("The host '%1' already exists.").tqarg(name), i18n("Host Already Exists")); m_gui->nameEdit->setFocus(); return false; |