summaryrefslogtreecommitdiffstats
path: root/kapptemplate/kapp/appview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:51:49 +0000
commit4ae0c208b66e0f7954e194384464fe2d0a2c56dd (patch)
treeb0a7cd1c184f0003c0292eb416ed27f674f9cc43 /kapptemplate/kapp/appview.cpp
parent1964ea0fb4ab57493ca2ebb709c8d3b5395fd653 (diff)
downloadtdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.tar.gz
tdesdk-4ae0c208b66e0f7954e194384464fe2d0a2c56dd.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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);
}