summaryrefslogtreecommitdiffstats
path: root/src/urldlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/urldlg.cpp')
-rw-r--r--src/urldlg.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/urldlg.cpp b/src/urldlg.cpp
index 49293f2..3507983 100644
--- a/src/urldlg.cpp
+++ b/src/urldlg.cpp
@@ -20,7 +20,7 @@
#include "urldlg.h"
#include <kcombobox.h>
#include <kurlrequester.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kconfig.h>
#include <klocale.h>
#include <kglobal.h>
@@ -28,10 +28,10 @@
#include <kurl.h>
#include <kdebug.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-UrlDlg::UrlDlg(QWidget *parent, const char *name)
- : KDialogBase(Plain, QString::null, Ok|Cancel|User1, Ok, parent, name,
+UrlDlg::UrlDlg(TQWidget *tqparent, const char *name)
+ : KDialogBase(Plain, TQString(), Ok|Cancel|User1, Ok, tqparent, name,
true,true, KStdGuiItem::clear())
{
init_dlg();
@@ -48,17 +48,17 @@ UrlDlg::~UrlDlg()
*/
void UrlDlg::init_dlg()
{
- QVBoxLayout * topLayout = new QVBoxLayout( plainPage(), 0, spacingHint());
- QLabel * label = new QLabel(i18n("Open repository or working copy") , plainPage());
+ TQVBoxLayout * topLayout = new TQVBoxLayout( plainPage(), 0, spacingHint());
+ TQLabel * label = new TQLabel(i18n("Open repository or working copy") , plainPage());
topLayout->addWidget(label);
KHistoryCombo * combo = new KHistoryCombo(0,"history_combo");
combo->setDuplicatesEnabled(false);
KConfig *kc = KGlobal::config();
- KConfigGroupSaver ks( kc, QString::fromLatin1("Open-repository settings") );
- int max = kc->readNumEntry( QString::fromLatin1("Maximum history"), 15 );
+ KConfigGroupSaver ks( kc, TQString::tqfromLatin1("Open-repository settings") );
+ int max = kc->readNumEntry( TQString::tqfromLatin1("Maximum history"), 15 );
combo->setMaxCount( max );
- QStringList list = kc->readListEntry( QString::fromLatin1("History") );
+ TQStringList list = kc->readListEntry( TQString::tqfromLatin1("History") );
combo->setHistoryItems(list);
combo->setMinimumWidth(100);
combo->adjustSize();
@@ -71,12 +71,12 @@ void UrlDlg::init_dlg()
urlRequester_->setFocus();
KFile::Mode mode = static_cast<KFile::Mode>(KFile::ExistingOnly|KFile::Directory);
urlRequester_->setMode(mode);
- connect(urlRequester_->comboBox(),SIGNAL(textChanged(const QString&)),SLOT(slotTextChanged(const QString&)));
+ connect(urlRequester_->comboBox(),TQT_SIGNAL(textChanged(const TQString&)),TQT_SLOT(slotTextChanged(const TQString&)));
enableButtonOK( false );
enableButton( KDialogBase::User1, false );
- connect( this, SIGNAL(user1Clicked()), SLOT(slotClear()));
+ connect( this, TQT_SIGNAL(user1Clicked()), TQT_SLOT(slotClear()));
urlRequester_->adjustSize();
- resize(QSize(400,sizeHint().height()));
+ resize(TQSize(400,tqsizeHint().height()));
}
/*!
@@ -88,8 +88,8 @@ void UrlDlg::accept()
if (combo) {
combo->addToHistory(urlRequester_->url());
KConfig *kc = KGlobal::config();
- KConfigGroupSaver ks(kc, QString::fromLatin1("Open-repository settings"));
- kc->writeEntry(QString::fromLatin1("History"), combo->historyItems());
+ KConfigGroupSaver ks(kc, TQString::tqfromLatin1("Open-repository settings"));
+ kc->writeEntry(TQString::tqfromLatin1("History"), combo->historyItems());
kc->sync();
}
KDialogBase::accept();
@@ -97,9 +97,9 @@ void UrlDlg::accept()
/*!
- \fn UrlDlg::slotTextChanged(const QString&)
+ \fn UrlDlg::slotTextChanged(const TQString&)
*/
-void UrlDlg::slotTextChanged(const QString&text)
+void UrlDlg::slotTextChanged(const TQString&text)
{
bool state = !text.stripWhiteSpace().isEmpty();
enableButtonOK( state );
@@ -121,7 +121,7 @@ void UrlDlg::slotClear()
*/
KURL UrlDlg::selectedURL()
{
- if ( result() == QDialog::Accepted ) {
+ if ( result() == TQDialog::Accepted ) {
KURL uri = urlRequester_->url();
return uri;
//return KURL::fromPathOrURL( urlRequester_->url() );
@@ -132,11 +132,11 @@ KURL UrlDlg::selectedURL()
/*!
- \fn UrlDlg::getURL(QWidget*parent)
+ \fn UrlDlg::getURL(TQWidget*tqparent)
*/
-KURL UrlDlg::getURL(QWidget*parent)
+KURL UrlDlg::getURL(TQWidget*tqparent)
{
- UrlDlg dlg(parent);
+ UrlDlg dlg(tqparent);
dlg.setCaption(i18n("Open"));
dlg.exec();
const KURL& url = dlg.selectedURL();