From 4ae0c208b66e0f7954e194384464fe2d0a2c56dd Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:51:49 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1157652 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kapptemplate/kapp/appview.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kapptemplate/kapp/appview.cpp') 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 -#include +#include +#include #include @@ -12,12 +12,12 @@ cat << EOF > $LOCATION_ROOT/${APP_NAME_LC}/${APP_NAME_LC}view.cpp #include #include -${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); } -- cgit v1.2.1