summaryrefslogtreecommitdiffstats
path: root/kapptemplate/kapp/appview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kapptemplate/kapp/appview.cpp')
-rw-r--r--kapptemplate/kapp/appview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kapptemplate/kapp/appview.cpp b/kapptemplate/kapp/appview.cpp
index 575e8a5d..3527596b 100644
--- a/kapptemplate/kapp/appview.cpp
+++ b/kapptemplate/kapp/appview.cpp
@@ -2,8 +2,8 @@ echo "Creating $LOCATION_ROOT/${APP_NAME_LC}/${APP_NAME_LC}view.cpp...";
cat << EOF > $LOCATION_ROOT/${APP_NAME_LC}/${APP_NAME_LC}view.cpp
#include "${APP_NAME_LC}view.h"
-#include <qpainter.h>
-#include <qlayout.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
#include <kurl.h>
@@ -12,12 +12,12 @@ cat << EOF > $LOCATION_ROOT/${APP_NAME_LC}/${APP_NAME_LC}view.cpp
#include <kmessagebox.h>
#include <krun.h>
-${APP_NAME}View::${APP_NAME}View(QWidget *parent)
- : QWidget(parent),
+${APP_NAME}View::${APP_NAME}View(TQWidget *parent)
+ : TQWidget(parent),
DCOPObject("${APP_NAME}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
@@ -62,10 +62,10 @@ ${APP_NAME}View::${APP_NAME}View(QWidget *parent)
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&)));
}
@@ -73,18 +73,18 @@ ${APP_NAME}View::~${APP_NAME}View()
{
}
-void ${APP_NAME}View::print(QPainter *p, int height, int width)
+void ${APP_NAME}View::print(TQPainter *p, int height, int width)
{
// do the actual printing, here
// p->drawText(etc..)
}
-QString ${APP_NAME}View::currentURL()
+TQString ${APP_NAME}View::currentURL()
{
return m_html->url().url();
}
-void ${APP_NAME}View::openURL(QString url)
+void ${APP_NAME}View::openURL(TQString url)
{
openURL(KURL(url));
}
@@ -94,12 +94,12 @@ void ${APP_NAME}View::openURL(const KURL& url)
m_html->openURL(url);
}
-void ${APP_NAME}View::slotOnURL(const QString& url)
+void ${APP_NAME}View::slotOnURL(const TQString& url)
{
emit signalChangeStatusbar(url);
}
-void ${APP_NAME}View::slotSetTitle(const QString& title)
+void ${APP_NAME}View::slotSetTitle(const TQString& title)
{
emit signalChangeCaption(title);
}