summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/documentrootdialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /klinkstatus/src/ui/documentrootdialog.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz
tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klinkstatus/src/ui/documentrootdialog.cpp')
-rw-r--r--klinkstatus/src/ui/documentrootdialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/klinkstatus/src/ui/documentrootdialog.cpp b/klinkstatus/src/ui/documentrootdialog.cpp
index c2ed3e7d..8c55519e 100644
--- a/klinkstatus/src/ui/documentrootdialog.cpp
+++ b/klinkstatus/src/ui/documentrootdialog.cpp
@@ -23,21 +23,21 @@
#include <klocale.h>
#include <kurl.h>
-#include <qstring.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqstring.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-DocumentRootDialog::DocumentRootDialog(QWidget *parent, QString const& url)
+DocumentRootDialog::DocumentRootDialog(TQWidget *parent, TQString const& url)
: KDialogBase(parent, "DocumentRootDialog", true, "Choose a Document Root",
KDialogBase::Ok, KDialogBase::Ok, true),
m_url(url)
{
- QWidget* page = new QWidget(this);
+ TQWidget* page = new TQWidget(this);
setMainWidget(page);
- QVBoxLayout* topLayout = new QVBoxLayout(page, 0, spacingHint());
+ TQVBoxLayout* topLayout = new TQVBoxLayout(page, 0, spacingHint());
- QLabel* label = new QLabel(i18n("As you are using a protocol different than HTTP, \nthere is no way to guess where the document root is, \nin order to resolve relative URLs like the ones started with \"/\".\n\nPlease specify one:"), page);
+ TQLabel* label = new TQLabel(i18n("As you are using a protocol different than HTTP, \nthere is no way to guess where the document root is, \nin order to resolve relative URLs like the ones started with \"/\".\n\nPlease specify one:"), page);
topLayout->addWidget(label);
m_urlRequester = new KURLRequester(page);
@@ -53,12 +53,12 @@ DocumentRootDialog::DocumentRootDialog(QWidget *parent, QString const& url)
m_urlRequester->setMode(KFile::Directory);
// enableButtonOK(false);
- connect(m_urlRequester, SIGNAL(textChanged (const QString &)),
- this, SLOT(slotTextChanged (const QString &)));
- connect(m_urlRequester, SIGNAL(returnPressed (const QString &)),
- this, SLOT(slotReturnPressed (const QString &)));
- connect(m_urlRequester, SIGNAL(urlSelected (const QString &)),
- this, SLOT(slotTextChanged (const QString &)));
+ connect(m_urlRequester, TQT_SIGNAL(textChanged (const TQString &)),
+ this, TQT_SLOT(slotTextChanged (const TQString &)));
+ connect(m_urlRequester, TQT_SIGNAL(returnPressed (const TQString &)),
+ this, TQT_SLOT(slotReturnPressed (const TQString &)));
+ connect(m_urlRequester, TQT_SIGNAL(urlSelected (const TQString &)),
+ this, TQT_SLOT(slotTextChanged (const TQString &)));
}
DocumentRootDialog::~DocumentRootDialog()
@@ -66,12 +66,12 @@ DocumentRootDialog::~DocumentRootDialog()
saveDialogSize("klinkstatus", true);
}
-void DocumentRootDialog::slotReturnPressed( const QString & )
+void DocumentRootDialog::slotReturnPressed( const TQString & )
{
slotOk();
}
-void DocumentRootDialog::slotTextChanged( const QString & s)
+void DocumentRootDialog::slotTextChanged( const TQString & s)
{
KURL url(s);
enableButtonOK(!s.isEmpty() && url.isValid());