summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kxt/app.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kxt/app.cpp')
-rw-r--r--languages/cpp/app_templates/kxt/app.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/languages/cpp/app_templates/kxt/app.cpp b/languages/cpp/app_templates/kxt/app.cpp
index 6e2ce524..ce5577cb 100644
--- a/languages/cpp/app_templates/kxt/app.cpp
+++ b/languages/cpp/app_templates/kxt/app.cpp
@@ -4,10 +4,10 @@
#include "settings.h"
#include "prefs.h"
-#include <qdragobject.h>
+#include <tqdragobject.h>
#include <kprinter.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
#include <kconfigdialog.h>
#include <kglobal.h>
@@ -47,10 +47,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&)));
}
@@ -60,19 +60,19 @@
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());
- m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
- m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
+ m_toolbarAction = KStdAction::showToolbar(this, TQT_SLOT(optionsShowToolbar()), actionCollection());
+ m_statusbarAction = KStdAction::showStatusbar(this, TQT_SLOT(optionsShowStatusbar()), actionCollection());
- KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
- KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection());
+ KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAMELC}View
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
createGUI();
@@ -135,17 +135,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}::changeStatusbar(const QString& text)
+void %{APPNAMELC}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAMELC}::changeCaption(const QString& text)
+void %{APPNAMELC}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);