summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kscons_kxt
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kscons_kxt')
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.cpp40
-rw-r--r--languages/cpp/app_templates/kscons_kxt/app.h4
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.cpp6
-rw-r--r--languages/cpp/app_templates/kscons_kxt/appview.h8
4 files changed, 29 insertions, 29 deletions
diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp
index bc343554..2a696ea0 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.cpp
+++ b/languages/cpp/app_templates/kscons_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>
@@ -48,10 +48,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&)));
showTipOnStart();
}
@@ -62,22 +62,22 @@
void %{APPNAME}::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::tipOfDay( this, SLOT( showTip() ), actionCollection()
+ KStdAction::tipOfDay( this, TQT_SLOT( showTip() ), actionCollection()
)->setWhatsThis(i18n("This shows useful tips on the use of this application."));
- 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 %{APPNAME}View
KAction *custom = new KAction(i18n("Swi&tch Colors"), 0,
- m_view, SLOT(switchColors()),
+ m_view, TQT_SLOT(switchColors()),
actionCollection(), "switch_action");
createGUI();
@@ -140,17 +140,17 @@ void %{APPNAME}::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 %{APPNAME}::changeStatusbar(const QString& text)
+void %{APPNAME}::changeStatusbar(const TQString& text)
{
// display the text on the statusbar
statusBar()->message(text, 2000);
}
-void %{APPNAME}::changeCaption(const QString& text)
+void %{APPNAME}::changeCaption(const TQString& text)
{
// display the text on the caption
setCaption(text);
@@ -158,7 +158,7 @@ void %{APPNAME}::changeCaption(const QString& text)
void %{APPNAME}::showTip()
{
- KTipDialog::showTip(this,QString::null,true);
+ KTipDialog::showTip(this,TQString::null,true);
}
void %{APPNAME}::showTipOnStart()
diff --git a/languages/cpp/app_templates/kscons_kxt/app.h b/languages/cpp/app_templates/kscons_kxt/app.h
index 4f855793..e812716d 100644
--- a/languages/cpp/app_templates/kscons_kxt/app.h
+++ b/languages/cpp/app_templates/kscons_kxt/app.h
@@ -53,8 +53,8 @@ private slots:
void newToolbarConfig();
void showTip();
- void changeStatusbar(const QString& text);
- void changeCaption(const QString& text);
+ void changeStatusbar(const TQString& text);
+ void changeCaption(const TQString& text);
private:
void setupAccel();
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.cpp b/languages/cpp/app_templates/kscons_kxt/appview.cpp
index 7dc99f61..2bcc9c6a 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.cpp
+++ b/languages/cpp/app_templates/kscons_kxt/appview.cpp
@@ -4,9 +4,9 @@
#include "settings.h"
#include <klocale.h>
-#include <qlabel.h>
+#include <tqlabel.h>
-%{APPNAME}View::%{APPNAME}View(QWidget *parent)
+%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
: %{APPNAME}view_base(parent)
{
settingsChanged();
@@ -20,7 +20,7 @@
void %{APPNAME}View::switchColors()
{
// switch the foreground/background colors of the label
- QColor color = Settings::col_background();
+ TQColor color = Settings::col_background();
Settings::setCol_background( Settings::col_foreground() );
Settings::setCol_foreground( color );
diff --git a/languages/cpp/app_templates/kscons_kxt/appview.h b/languages/cpp/app_templates/kscons_kxt/appview.h
index 86d097a4..96f0845f 100644
--- a/languages/cpp/app_templates/kscons_kxt/appview.h
+++ b/languages/cpp/app_templates/kscons_kxt/appview.h
@@ -3,7 +3,7 @@
#ifndef _%{APPNAMEUC}VIEW_H_
#define _%{APPNAMEUC}VIEW_H_
-#include <qwidget.h>
+#include <tqwidget.h>
#include "%{APPNAMELC}view_base.h"
@@ -26,7 +26,7 @@ public:
/**
* Default constructor
*/
- %{APPNAME}View(QWidget *parent);
+ %{APPNAME}View(TQWidget *parent);
/**
* Destructor
@@ -37,12 +37,12 @@ signals:
/**
* Use this signal to change the content of the statusbar
*/
- void signalChangeStatusbar(const QString& text);
+ void signalChangeStatusbar(const TQString& text);
/**
* Use this signal to change the content of the caption
*/
- void signalChangeCaption(const QString& text);
+ void signalChangeCaption(const TQString& text);
public slots:
void switchColors();