From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../cpp/app_templates/kscreensaver/kscreensaver.cpp | 18 +++++++++--------- .../cpp/app_templates/kscreensaver/kscreensaver.h | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'languages/cpp/app_templates/kscreensaver') diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp index f4418571..efdbf40b 100644 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp +++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.cpp @@ -1,8 +1,8 @@ %{CPP_TEMPLATE} #include -#include -#include +#include +#include #include #include #include @@ -24,7 +24,7 @@ extern "C" return new %{APPNAME}( id ); } - QDialog *kss_setup() + TQDialog *kss_setup() { KGlobal::locale()->insertCatalogue("%{APPNAMELC}"); return new %{APPNAME}Setup(); @@ -33,15 +33,15 @@ extern "C" //----------------------------------------------------------------------------- //! dialog to setup screen saver parameters -%{APPNAME}Setup::%{APPNAME}Setup( QWidget *parent, const char *name ) +%{APPNAME}Setup::%{APPNAME}Setup( TQWidget *parent, const char *name ) : %{APPNAME}UI( parent, name, TRUE ) { /// @todo //Connect your signals and slots here to configure the screen saver. - connect( OkayPushButton, SIGNAL( released() ), - SLOT( slotOkPressed() ) ); - connect( CancelPushButton, SIGNAL( released() ), - SLOT( slotCancelPressed() ) ); + connect( OkayPushButton, TQT_SIGNAL( released() ), + TQT_SLOT( slotOkPressed() ) ); + connect( CancelPushButton, TQT_SIGNAL( released() ), + TQT_SLOT( slotCancelPressed() ) ); } @@ -101,7 +101,7 @@ void %{APPNAME}::blank() { /// @todo //Add your code to render the screen. - setBackgroundColor( QColor(black) ); + setBackgroundColor( TQColor(black) ); // erase(); } diff --git a/languages/cpp/app_templates/kscreensaver/kscreensaver.h b/languages/cpp/app_templates/kscreensaver/kscreensaver.h index 1301083d..a5d252a5 100644 --- a/languages/cpp/app_templates/kscreensaver/kscreensaver.h +++ b/languages/cpp/app_templates/kscreensaver/kscreensaver.h @@ -21,7 +21,7 @@ class %{APPNAME}Setup : public %{APPNAME}UI { Q_OBJECT public: - %{APPNAME}Setup( QWidget *parent = NULL, const char *name = NULL ); + %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL ); private slots: void slotOkPressed(); -- cgit v1.2.1