summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/opieapp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/app_templates/opieapp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/app_templates/opieapp')
-rw-r--r--languages/cpp/app_templates/opieapp/example.cpp6
-rw-r--r--languages/cpp/app_templates/opieapp/example.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/languages/cpp/app_templates/opieapp/example.cpp b/languages/cpp/app_templates/opieapp/example.cpp
index 84f3f9d5..ebb4233c 100644
--- a/languages/cpp/app_templates/opieapp/example.cpp
+++ b/languages/cpp/app_templates/opieapp/example.cpp
@@ -1,5 +1,5 @@
#include "%{APPNAMELC}.h"
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
#include <opie/oapplicationfactory.h>
typedef OApplicationFactory<%{APPNAME}> %{APPNAME}Factory;
@@ -9,10 +9,10 @@ OPIE_EXPORT_APP( %{APPNAME}Factory )
* Constructs a %{APPNAME} which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
-%{APPNAME}::%{APPNAME}( QWidget* parent, const char* name, WFlags fl )
+%{APPNAME}::%{APPNAME}( TQWidget* parent, const char* name, WFlags fl )
: %{APPNAME}Base( parent, name, fl )
{
- connect(quit, SIGNAL(clicked()), this, SLOT(goodBye()));
+ connect(quit, TQT_SIGNAL(clicked()), this, TQT_SLOT(goodBye()));
}
/*
diff --git a/languages/cpp/app_templates/opieapp/example.h b/languages/cpp/app_templates/opieapp/example.h
index 1ba8ead7..2a9c9efa 100644
--- a/languages/cpp/app_templates/opieapp/example.h
+++ b/languages/cpp/app_templates/opieapp/example.h
@@ -7,10 +7,10 @@ class %{APPNAME} : public %{APPNAME}Base
Q_OBJECT
public:
- static QString appName() {
- return QString::fromLatin1("%{APPNAMELC}" );
+ static TQString appName() {
+ return TQString::fromLatin1("%{APPNAMELC}" );
}
- %{APPNAME}( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ %{APPNAME}( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~%{APPNAME}();
private slots: