From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/app_templates/kde4app/kapp4.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'languages/cpp/app_templates/kde4app/kapp4.cpp') 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 -#include +#include +#include #include #include @@ -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(); } -- cgit v1.2.3