summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/purledit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/purledit.cpp')
-rw-r--r--lib/widgets/propeditor/purledit.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/widgets/propeditor/purledit.cpp b/lib/widgets/propeditor/purledit.cpp
index 3a896cdf..64e4d0c7 100644
--- a/lib/widgets/propeditor/purledit.cpp
+++ b/lib/widgets/propeditor/purledit.cpp
@@ -22,49 +22,49 @@
#ifndef PURE_QT
#include <kurlrequester.h>
#else
-#include <qpushbutton.h>
-#include <qlineedit.h>
+#include <tqpushbutton.h>
+#include <tqlineedit.h>
#endif
-#include <qfiledialog.h>
-#include <qlayout.h>
+#include <tqfiledialog.h>
+#include <tqlayout.h>
namespace PropertyLib{
-PUrlEdit::PUrlEdit(Mode mode, MultiProperty* property, QWidget* parent, const char* name)
+PUrlEdit::PUrlEdit(Mode mode, MultiProperty* property, TQWidget* parent, const char* name)
:PropertyWidget(property, parent, name)
{
- QHBoxLayout *l = new QHBoxLayout(this, 0, 0);
+ TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
#ifndef PURE_QT
m_edit = new KURLRequester(this);
l->addWidget(m_edit);
m_edit->setMode((KFile::Mode)mode);
- connect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(updateProperty(const QString&)));
+ connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
#else
m_edit = new KLineEdit(this);
- m_select = new QPushButton("...",this);
+ m_select = new TQPushButton("...",this);
l->addWidget(m_edit);
l->addWidget(m_select);
m_mode = mode;
- connect( m_select, SIGNAL(clicked()),this,SLOT(select()));
+ connect( m_select, TQT_SIGNAL(clicked()),this,TQT_SLOT(select()));
#endif
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
}
-QVariant PUrlEdit::value() const
+TQVariant PUrlEdit::value() const
{
#ifndef PURE_QT
- return QVariant(m_edit->url());
+ return TQVariant(m_edit->url());
#else
- return QVariant(m_url);
+ return TQVariant(m_url);
#endif
}
-void PUrlEdit::setValue(const QVariant& value, bool emitChange)
+void PUrlEdit::setValue(const TQVariant& value, bool emitChange)
{
#ifndef PURE_QT
- disconnect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(updateProperty(const QString&)));
+ disconnect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
m_edit->setURL(value.toString());
- connect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(updateProperty(const QString&)));
+ connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
#else
m_edit->setText(value.toString());
#endif
@@ -72,19 +72,19 @@ void PUrlEdit::setValue(const QVariant& value, bool emitChange)
emit propertyChanged(m_property, value);
}
-void PUrlEdit::updateProperty(const QString &val)
+void PUrlEdit::updateProperty(const TQString &val)
{
- emit propertyChanged(m_property, QVariant(val));
+ emit propertyChanged(m_property, TQVariant(val));
}
void PUrlEdit::select()
{
#ifdef PURE_QT
- QString path = m_url;
+ TQString path = m_url;
if( m_mode == Directory )
- m_url = QFileDialog::getExistingDirectory( m_url,this);
+ m_url = TQFileDialog::getExistingDirectory( m_url,this);
else
- m_url = QFileDialog::getOpenFileName(m_url, QString::null, this);
+ m_url = TQFileDialog::getOpenFileName(m_url, TQString::null, this);
updateProperty(m_url);
m_edit->setText(m_url);
#endif