summaryrefslogtreecommitdiffstats
path: root/buildtools/autotools/addicondlg.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/addicondlg.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/addicondlg.cpp')
-rw-r--r--buildtools/autotools/addicondlg.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/buildtools/autotools/addicondlg.cpp b/buildtools/autotools/addicondlg.cpp
index 251601f7..5531c656 100644
--- a/buildtools/autotools/addicondlg.cpp
+++ b/buildtools/autotools/addicondlg.cpp
@@ -11,8 +11,8 @@
#include "addicondlg.h"
-#include <qcombobox.h>
-#include <qlabel.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
#include <klineedit.h>
#include <kdebug.h>
#include <klocale.h>
@@ -39,7 +39,7 @@ const char *size_map[] = {
AddIconDialog::AddIconDialog(AutoProjectPart *part, AutoProjectWidget *widget,
SubprojectItem *spitem, TargetItem *titem,
- QWidget *parent, const char *name)
+ TQWidget *parent, const char *name)
: AddIconDialogBase(parent, name, true)
{
type_combo->insertItem(i18n("Application"));
@@ -72,9 +72,9 @@ AddIconDialog::~AddIconDialog()
void AddIconDialog::somethingChanged()
{
- QString size = size_map[size_combo->currentItem()];
- QString type = type_map[type_combo->currentItem()];
- QString name = name_edit->text();
+ TQString size = size_map[size_combo->currentItem()];
+ TQString type = type_map[type_combo->currentItem()];
+ TQString name = name_edit->text();
filename_edit->setText(size + "-" + type + "-" + name + ".png");
}
@@ -82,15 +82,15 @@ void AddIconDialog::somethingChanged()
void AddIconDialog::accept()
{
- QString name = filename_edit->text();
+ TQString name = filename_edit->text();
- QString destdir = m_subProject->subdir;
- QString destpath = destdir + "/" + name;
+ TQString destdir = m_subProject->subdir;
+ TQString destpath = destdir + "/" + name;
- QString size = size_combo->currentText();
- QString unknown = KIconTheme::defaultThemeName()+ "/" + size + "x" + size + "/mimetypes/unknown.png";
+ TQString size = size_combo->currentText();
+ TQString unknown = KIconTheme::defaultThemeName()+ "/" + size + "x" + size + "/mimetypes/unknown.png";
- QString templateFileName = locate("icon", unknown);
+ TQString templateFileName = locate("icon", unknown);
kdDebug(9020) << "Unknown: " << unknown << ", template: " << templateFileName << endl;
if (!templateFileName.isEmpty()) {
@@ -105,11 +105,11 @@ void AddIconDialog::accept()
m_target->sources.append(fitem);
m_target->insertItem(fitem);
- m_part->startMakeCommand(destdir, QString::fromLatin1("force-reedit"));
+ m_part->startMakeCommand(destdir, TQString::fromLatin1("force-reedit"));
m_widget->emitAddedFile(destpath);
- QDialog::accept();
+ TQDialog::accept();
}
#include "addicondlg.moc"