summaryrefslogtreecommitdiffstats
path: root/ktouch/src/ktouchopenrequest.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /ktouch/src/ktouchopenrequest.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ktouch/src/ktouchopenrequest.cpp')
-rw-r--r--ktouch/src/ktouchopenrequest.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/ktouch/src/ktouchopenrequest.cpp b/ktouch/src/ktouchopenrequest.cpp
index d4bc875b..eb82f3f8 100644
--- a/ktouch/src/ktouchopenrequest.cpp
+++ b/ktouch/src/ktouchopenrequest.cpp
@@ -10,9 +10,9 @@
* (at your option) any later version. *
***************************************************************************/
-#include <qradiobutton.h>
-#include <qlabel.h>
-#include <qbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqlabel.h>
+#include <tqbuttongroup.h>
#include <kpushbutton.h>
#include <klineedit.h>
@@ -26,14 +26,14 @@
#include "ktouchopenrequest.h"
#include "ktouchopenrequest.moc"
-KTouchOpenRequest::KTouchOpenRequest(QWidget* parent, const char* name, bool modal, WFlags fl)
+KTouchOpenRequest::KTouchOpenRequest(TQWidget* parent, const char* name, bool modal, WFlags fl)
: KTouchOpenRequestDlg(parent,name, modal,fl)
{
}
-int KTouchOpenRequest::requestFileToOpen(KURL& url, const QString& caption, const QString& title,
- const QString& currentText, const QString& defaultText, const QString& openText,
- const QString& newText, KURL current_url, QStringList defaultList, QString emptyListText)
+int KTouchOpenRequest::requestFileToOpen(KURL& url, const TQString& caption, const TQString& title,
+ const TQString& currentText, const TQString& defaultText, const TQString& openText,
+ const TQString& newText, KURL current_url, TQStringList defaultList, TQString emptyListText)
{
setCaption(caption);
openChoiceGroup->setTitle(title);
@@ -60,7 +60,7 @@ int KTouchOpenRequest::requestFileToOpen(KURL& url, const QString& caption, cons
presetRadioBtn->setEnabled(false);
}
else {
- for (QStringList::Iterator it = defaultList.begin(); it != defaultList.end(); ++it )
+ for (TQStringList::Iterator it = defaultList.begin(); it != defaultList.end(); ++it )
presetCombo->insertItem(*it);
presetRadioBtn->setEnabled(true);
}
@@ -79,7 +79,7 @@ void KTouchOpenRequest::okBtnClicked() {
if (presetRadioBtn->isChecked())
m_url = presetCombo->currentText();
if (newRadioBtn->isChecked())
- m_url = QString::null;
+ m_url = TQString::null;
if (openFileRadioBtn->isChecked()) {
if (openFileEdit->text().isEmpty()) {
KMessageBox::error(this, i18n("Please select or enter a file name."));
@@ -92,7 +92,7 @@ void KTouchOpenRequest::okBtnClicked() {
}
m_url = tmp;
};
- QDialog::accept();
+ TQDialog::accept();
}
@@ -113,7 +113,7 @@ void KTouchOpenRequest::radioBtnChanged() {
void KTouchOpenRequest::browseBtnClicked() {
- KURL tmp = KFileDialog::getOpenURL(QString::null, QString::null, this, i18n("Select Training Lecture File") );
+ KURL tmp = KFileDialog::getOpenURL(TQString::null, TQString::null, this, i18n("Select Training Lecture File") );
if (!tmp.isEmpty())
openFileEdit->setText(tmp.url());
}