summaryrefslogtreecommitdiffstats
path: root/kdeprint/cups/cupsdconf2/qdirlineedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/cups/cupsdconf2/qdirlineedit.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/cupsdconf2/qdirlineedit.cpp')
-rw-r--r--kdeprint/cups/cupsdconf2/qdirlineedit.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kdeprint/cups/cupsdconf2/qdirlineedit.cpp b/kdeprint/cups/cupsdconf2/qdirlineedit.cpp
index 931d6ac4a..66df30652 100644
--- a/kdeprint/cups/cupsdconf2/qdirlineedit.cpp
+++ b/kdeprint/cups/cupsdconf2/qdirlineedit.cpp
@@ -19,21 +19,21 @@
#include "qdirlineedit.h"
-#include <qlineedit.h>
-#include <qlayout.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
#include <kpushbutton.h>
#include <kfiledialog.h>
#include <kiconloader.h>
-QDirLineEdit::QDirLineEdit(bool file, QWidget *parent, const char *name)
- : QWidget(parent, name)
+QDirLineEdit::QDirLineEdit(bool file, TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- edit_ = new QLineEdit(this);
+ edit_ = new TQLineEdit(this);
button_ = new KPushButton(this);
button_->setPixmap(SmallIcon("fileopen"));
- connect(button_,SIGNAL(clicked()),SLOT(buttonClicked()));
+ connect(button_,TQT_SIGNAL(clicked()),TQT_SLOT(buttonClicked()));
- QHBoxLayout *main_ = new QHBoxLayout(this, 0, 3);
+ QHBoxLayout *main_ = new TQHBoxLayout(this, 0, 3);
main_->addWidget(edit_);
main_->addWidget(button_);
@@ -44,12 +44,12 @@ QDirLineEdit::~QDirLineEdit()
{
}
-void QDirLineEdit::setURL(const QString& txt)
+void QDirLineEdit::setURL(const TQString& txt)
{
edit_->setText(txt);
}
-QString QDirLineEdit::url()
+TQString QDirLineEdit::url()
{
return edit_->text();
}
@@ -60,7 +60,7 @@ void QDirLineEdit::buttonClicked()
if (!fileedit_)
dirname = KFileDialog::getExistingDirectory(edit_->text(), this);
else
- dirname = KFileDialog::getOpenFileName(edit_->text(), QString::null, this);
+ dirname = KFileDialog::getOpenFileName(edit_->text(), TQString::null, this);
if (!dirname.isEmpty())
edit_->setText(dirname);
}