summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/kscreensaver
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/cpp/app_templates/kscreensaver
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/cpp/app_templates/kscreensaver')
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.cpp4
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaver.h4
-rw-r--r--languages/cpp/app_templates/kscreensaver/kscreensaverui.ui16
-rw-r--r--languages/cpp/app_templates/kscreensaver/src-Makefile.am2
4 files changed, 14 insertions, 12 deletions
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
index efdbf40b..855fb657 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp
@@ -33,8 +33,8 @@ extern "C"
//-----------------------------------------------------------------------------
//! dialog to setup screen saver parameters
-%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name )
- : %{APPNAME}UI( parent, name, TRUE )
+%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *tqparent, const char *name )
+ : %{APPNAME}UI( tqparent, name, TRUE )
{
/// @todo
//Connect your signals and slots here to configure the screen saver.
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.h b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
index a5d252a5..c8511d34 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaver.h
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.h
@@ -9,6 +9,7 @@
class %{APPNAME} : public KScreenSaver
{
Q_OBJECT
+ TQ_OBJECT
public:
%{APPNAME}( WId drawable );
virtual ~%{APPNAME}();
@@ -20,8 +21,9 @@ private:
class %{APPNAME}Setup : public %{APPNAME}UI
{
Q_OBJECT
+ TQ_OBJECT
public:
- %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL );
+ %{APPNAME}Setup( TQWidget *tqparent = NULL, const char *name = NULL );
private slots:
void slotOkPressed();
diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui b/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui
index c4a843d0..da84ab28 100644
--- a/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui
+++ b/languages/cpp/app_templates/kscreensaver/kscreensaverui.ui
@@ -2,7 +2,7 @@
<class>%{APPNAME}UI</class>
<comment>This is the main UI for setting up your screen saver.</comment>
<author>Ian Reinhart Geiser</author>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>%{APPNAMELC}cfg</cstring>
</property>
@@ -17,7 +17,7 @@
<property name="caption">
<string>Screen Saver Config</string>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout2</cstring>
</property>
@@ -33,7 +33,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QCheckBox" row="0" column="0">
+ <widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>CheckBox1</cstring>
</property>
@@ -41,7 +41,7 @@
<string>Set some setting</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
+ <widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -50,7 +50,7 @@
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>OkayPushButton</cstring>
</property>
@@ -58,7 +58,7 @@
<string>&amp;OK</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>CancelPushButton</cstring>
</property>
@@ -74,6 +74,6 @@
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
-<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
+<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/languages/cpp/app_templates/kscreensaver/src-Makefile.am b/languages/cpp/app_templates/kscreensaver/src-Makefile.am
index e19ffb77..e11ec0dc 100644
--- a/languages/cpp/app_templates/kscreensaver/src-Makefile.am
+++ b/languages/cpp/app_templates/kscreensaver/src-Makefile.am
@@ -20,5 +20,5 @@ desktopdir = $(kde_appsdir)/System/ScreenSavers
EXTRA_DIST = $(desktop_DATA)
messages: rc.cpp
- $(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
+ $(EXTRACTRC) `tqfind . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/%{APPNAMELC}.pot