summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/addtranslationdlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /buildtools/autotools/addtranslationdlg.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'buildtools/autotools/addtranslationdlg.cpp')
-rw-r--r--buildtools/autotools/addtranslationdlg.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/buildtools/autotools/addtranslationdlg.cpp b/buildtools/autotools/addtranslationdlg.cpp
index 993dee7d..559e1369 100644
--- a/buildtools/autotools/addtranslationdlg.cpp
+++ b/buildtools/autotools/addtranslationdlg.cpp
@@ -11,15 +11,15 @@
#include "addtranslationdlg.h"
-#include <qcombobox.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
-#include <qstrlist.h>
+#include <tqcombobox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
+#include <tqstrlist.h>
#include <kbuttonbox.h>
#include <kdialog.h>
#include <klocale.h>
@@ -31,35 +31,35 @@
#include "autoprojectpart.h"
-AddTranslationDialog::AddTranslationDialog(AutoProjectPart *part, QWidget *parent, const char *name)
- : QDialog(parent, name, true)
+AddTranslationDialog::AddTranslationDialog(AutoProjectPart *part, TQWidget *parent, const char *name)
+ : TQDialog(parent, name, true)
{
setCaption(i18n("Add Translation"));
m_part = part;
- QHBox *hbox = new QHBox(this);
- (void) new QLabel(i18n("Language:"), hbox);
- lang_combo = new QComboBox(hbox);
+ TQHBox *hbox = new TQHBox(this);
+ (void) new TQLabel(i18n("Language:"), hbox);
+ lang_combo = new TQComboBox(hbox);
- QVBoxLayout *layout = new QVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
+ TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->addWidget(hbox);
- QFrame *frame = new QFrame(this);
- frame->setFrameStyle(QFrame::HLine | QFrame::Sunken);
+ TQFrame *frame = new TQFrame(this);
+ frame->setFrameStyle(TQFrame::HLine | TQFrame::Sunken);
layout->addWidget(frame, 0);
KButtonBox *buttonbox = new KButtonBox(this);
buttonbox->addStretch();
- QPushButton *ok_button = buttonbox->addButton(KStdGuiItem::ok());
- QPushButton *cancel_button = buttonbox->addButton(KStdGuiItem::cancel());
+ TQPushButton *ok_button = buttonbox->addButton(KStdGuiItem::ok());
+ TQPushButton *cancel_button = buttonbox->addButton(KStdGuiItem::cancel());
ok_button->setDefault(true);
- connect( ok_button, SIGNAL(clicked()), this, SLOT(accept()) );
- connect( cancel_button, SIGNAL(clicked()), this, SLOT(reject()) );
+ connect( ok_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );
+ connect( cancel_button, TQT_SIGNAL(clicked()), this, TQT_SLOT(reject()) );
buttonbox->layout();
layout->addWidget(buttonbox, 0);
- QStringList rawlist, list;
+ TQStringList rawlist, list;
rawlist << "af" << "ar" << "bg" << "bo" << "br" << "bs" << "ca" << "cs" << "cy" << "da"
<< "de" << "el" << "en_GB" << "eo" << "es" << "et" << "eu" << "fi" << "fr";
rawlist << "ga" << "gl" << "gu" << "he" << "hi" << "hu" << "id" << "is" << "it" << "ja"
@@ -68,9 +68,9 @@ AddTranslationDialog::AddTranslationDialog(AutoProjectPart *part, QWidget *paren
<< "ta" << "th" << "tr" << "uk" << "wa" << "zh_CN.GB2312" << "zh_TW.Big5";
// Remove already added languages
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = rawlist.begin(); it != rawlist.end(); ++it) {
- QFileInfo fi(m_part->projectDirectory() + "/po/" + (*it) + ".po");
+ TQFileInfo fi(m_part->projectDirectory() + "/po/" + (*it) + ".po");
if (!fi.exists())
list.append(*it);
}
@@ -89,10 +89,10 @@ AddTranslationDialog::~AddTranslationDialog()
void AddTranslationDialog::accept()
{
- QString dir = m_part->projectDirectory() + "/po";
- QString fileName = dir + "/" + lang_combo->currentText() + ".po";
+ TQString dir = m_part->projectDirectory() + "/po";
+ TQString fileName = dir + "/" + lang_combo->currentText() + ".po";
- QFile f(fileName);
+ TQFile f(fileName);
if (f.exists()) {
KMessageBox::information(this, i18n("A translation file for the language %1 exists already."));
return;
@@ -101,9 +101,9 @@ void AddTranslationDialog::accept()
f.close();
dir = m_part->buildDirectory() + "/po";
- m_part->startMakeCommand(dir, QString::fromLatin1("force-reedit"));
+ m_part->startMakeCommand(dir, TQString::fromLatin1("force-reedit"));
- QDialog::accept();
+ TQDialog::accept();
}
#include "addtranslationdlg.moc"