diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/app_templates/kscreensaver | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-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/kscreensaver')
-rw-r--r-- | languages/cpp/app_templates/kscreensaver/kscreensaver.cpp | 18 | ||||
-rw-r--r-- | languages/cpp/app_templates/kscreensaver/kscreensaver.h | 2 |
2 files changed, 10 insertions, 10 deletions
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 <stdlib.h> -#include <qcheckbox.h> -#include <qcolor.h> +#include <tqcheckbox.h> +#include <tqcolor.h> #include <kapplication.h> #include <klocale.h> #include <kpushbutton.h> @@ -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(); |