summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kapp/appview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/app_templates/kapp/appview.cpp')
-rw-r--r--languages/cpp/app_templates/kapp/appview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/languages/cpp/app_templates/kapp/appview.cpp b/languages/cpp/app_templates/kapp/appview.cpp
index a57adbf3..32afca2e 100644
--- a/languages/cpp/app_templates/kapp/appview.cpp
+++ b/languages/cpp/app_templates/kapp/appview.cpp
@@ -2,8 +2,8 @@
#include "%{APPNAMELC}view.h"
-#include <qpainter.h>
-#include <qlayout.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
#include <kurl.h>
@@ -13,12 +13,12 @@
#include <krun.h>
#include <klocale.h>
-%{APPNAME}View::%{APPNAME}View(QWidget *parent)
- : QWidget(parent),
+%{APPNAME}View::%{APPNAME}View(TQWidget *parent)
+ : TQWidget(parent),
DCOPObject("%{APPNAME}Iface")
{
// setup our layout manager to automatically add our widgets
- QHBoxLayout *top_layout = new QHBoxLayout(this);
+ TQHBoxLayout *top_layout = new TQHBoxLayout(this);
top_layout->setAutoAdd(true);
// we want to look for all components that satisfy our needs. the
@@ -63,10 +63,10 @@
return;
}
- connect(m_html, SIGNAL(setWindowCaption(const QString&)),
- this, SLOT(slotSetTitle(const QString&)));
- connect(m_html, SIGNAL(setStatusBarText(const QString&)),
- this, SLOT(slotOnURL(const QString&)));
+ connect(m_html, TQT_SIGNAL(setWindowCaption(const TQString&)),
+ this, TQT_SLOT(slotSetTitle(const TQString&)));
+ connect(m_html, TQT_SIGNAL(setStatusBarText(const TQString&)),
+ this, TQT_SLOT(slotOnURL(const TQString&)));
}
@@ -74,18 +74,18 @@
{
}
-void %{APPNAME}View::print(QPainter *p, int height, int width)
+void %{APPNAME}View::print(TQPainter *p, int height, int width)
{
// do the actual printing, here
// p->drawText(etc..)
}
-QString %{APPNAME}View::currentURL()
+TQString %{APPNAME}View::currentURL()
{
return m_html->url().url();
}
-void %{APPNAME}View::openURL(QString url)
+void %{APPNAME}View::openURL(TQString url)
{
openURL(KURL(url));
}
@@ -95,12 +95,12 @@ void %{APPNAME}View::openURL(const KURL& url)
m_html->openURL(url);
}
-void %{APPNAME}View::slotOnURL(const QString& url)
+void %{APPNAME}View::slotOnURL(const TQString& url)
{
emit signalChangeStatusbar(url);
}
-void %{APPNAME}View::slotSetTitle(const QString& title)
+void %{APPNAME}View::slotSetTitle(const TQString& title)
{
emit signalChangeCaption(title);
}