From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: 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 --- filesharing/advanced/nfs/nfshostdlg.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'filesharing/advanced/nfs/nfshostdlg.cpp') 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; -- cgit v1.2.1