summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kde4app/kapp4.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 /languages/cpp/app_templates/kde4app/kapp4.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 'languages/cpp/app_templates/kde4app/kapp4.cpp')
-rw-r--r--languages/cpp/app_templates/kde4app/kapp4.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/languages/cpp/app_templates/kde4app/kapp4.cpp b/languages/cpp/app_templates/kde4app/kapp4.cpp
index c11a58d1..b8849a58 100644
--- a/languages/cpp/app_templates/kde4app/kapp4.cpp
+++ b/languages/cpp/app_templates/kde4app/kapp4.cpp
@@ -4,8 +4,8 @@
#include "%{APPNAMELC}view.h"
#include "settings.h"
-#include <QtGui/QDropEvent>
-#include <QtGui/QPainter>
+#include <QtGui/TQDropEvent>
+#include <QtGui/TQPainter>
#include <kconfigdialog.h>
#include <kstatusbar.h>
@@ -47,15 +47,15 @@
void %{APPNAME}::setupActions()
{
- KStandardAction::openNew(this, SLOT(fileNew()), actionCollection());
- KStandardAction::quit(qApp, SLOT(quit()), actionCollection());
+ KStandardAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
+ KStandardAction::quit(qApp, TQT_SLOT(quit()), actionCollection());
- KStandardAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStandardAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAME}View
KAction *custom = new KAction(KIcon("colorize"), i18n("Swi&tch Colors"), this);
actionCollection()->addAction( QLatin1String("switch_action"), custom );
- connect(custom, SIGNAL(triggered(bool)), m_view, SLOT(switchColors()));
+ connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors()));
}
void %{APPNAME}::fileNew()
@@ -79,10 +79,10 @@ void %{APPNAME}::optionsPreferences()
return;
}
KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self());
- QWidget *generalSettingsDlg = new QWidget;
+ TQWidget *generalSettingsDlg = new QWidget;
ui_prefs_base.setupUi(generalSettingsDlg);
dialog->addPage(generalSettingsDlg, i18n("General"), "package_setting");
- connect(dialog, SIGNAL(settingsChanged(QString)), m_view, SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged(TQString)), m_view, TQT_SLOT(settingsChanged()));
dialog->setAttribute( Qt::WA_DeleteOnClose );
dialog->show();
}