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/kconfig35/app.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'languages/cpp/app_templates/kconfig35/app.cpp') diff --git a/languages/cpp/app_templates/kconfig35/app.cpp b/languages/cpp/app_templates/kconfig35/app.cpp index e32e28b5..e18b4148 100644 --- a/languages/cpp/app_templates/kconfig35/app.cpp +++ b/languages/cpp/app_templates/kconfig35/app.cpp @@ -4,7 +4,7 @@ #include "settings.h" #include "prefs.h" -#include +#include #include #include @@ -34,10 +34,10 @@ setAutoSaveSettings(); // allow the view to change the statusbar and caption - connect(m_view, SIGNAL(signalChangeStatusbar(const QString&)), - this, SLOT(changeStatusbar(const QString&))); - connect(m_view, SIGNAL(signalChangeCaption(const QString&)), - this, SLOT(changeCaption(const QString&))); + connect(m_view, TQT_SIGNAL(signalChangeStatusbar(const TQString&)), + this, TQT_SLOT(changeStatusbar(const TQString&))); + connect(m_view, TQT_SIGNAL(signalChangeCaption(const TQString&)), + this, TQT_SLOT(changeCaption(const TQString&))); } @@ -47,14 +47,14 @@ void %{APPNAMELC}::setupActions() { - KStdAction::openNew(this, SLOT(fileNew()), actionCollection()); - KStdAction::quit(kapp, SLOT(quit()), actionCollection()); + KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection()); + KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection()); - KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection()); + KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); // custom menu and menu item KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, - m_view, SLOT(switchColors()), + m_view, TQT_SLOT(switchColors()), actionCollection(), "switch_action"); setupGUI(); @@ -75,17 +75,17 @@ void %{APPNAMELC}::optionsPreferences() // to the names of the variables in the .kcfg file KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); dialog->addPage(new Prefs(), i18n("General"), "package_settings"); - connect(dialog, SIGNAL(settingsChanged()), m_view, SLOT(settingsChanged())); + connect(dialog, TQT_SIGNAL(settingsChanged()), m_view, TQT_SLOT(settingsChanged())); dialog->show(); } -void %{APPNAMELC}::changeCaption(const QString& text) +void %{APPNAMELC}::changeCaption(const TQString& text) { // display the text on the caption setCaption(text); } -void %{APPNAMELC}::changeStatusbar(const QString& text) +void %{APPNAMELC}::changeStatusbar(const TQString& text) { // display the text on the statusbar statusBar()->message(text); -- cgit v1.2.3