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/opietoday | |
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/opietoday')
4 files changed, 26 insertions, 26 deletions
diff --git a/languages/cpp/app_templates/opietoday/exampleplugin.cpp b/languages/cpp/app_templates/opietoday/exampleplugin.cpp index 3d32b274..c7df8069 100644 --- a/languages/cpp/app_templates/opietoday/exampleplugin.cpp +++ b/languages/cpp/app_templates/opietoday/exampleplugin.cpp @@ -9,8 +9,8 @@ delete (%{APPNAME}Widget*)m_widget; } -QString %{APPNAME}::pluginName() const { - return QObject::tr( "%{APPNAME}" ); +TQString %{APPNAME}::pluginName() const { + return TQObject::tr( "%{APPNAME}" ); } double %{APPNAME}::versionNumber() const { @@ -18,11 +18,11 @@ double %{APPNAME}::versionNumber() const { } // this sets the image that will be shown on the left side of the plugin -QString %{APPNAME}::pixmapNameWidget() const { - return QString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}"); +TQString %{APPNAME}::pixmapNameWidget() const { + return TQString::fromLatin1("%{APPNAMELC}/%{APPNAMELC}"); } -QWidget* %{APPNAME}::widget( QWidget * wid ) { +TQWidget* %{APPNAME}::widget( TQWidget * wid ) { if(!m_widget) { m_widget = new %{APPNAME}Widget( wid, "%{APPNAME}" ); } @@ -31,18 +31,18 @@ QWidget* %{APPNAME}::widget( QWidget * wid ) { // that would be the icon of the config widget in todays config view -QString %{APPNAME}::pixmapNameConfig() const { +TQString %{APPNAME}::pixmapNameConfig() const { return 0l; } // No config widget yet, look at the datebook plugin for an example of that -TodayConfigWidget* %{APPNAME}::configWidget( QWidget* /*parent*/ ) { +TodayConfigWidget* %{APPNAME}::configWidget( TQWidget* /*parent*/ ) { return 0l; } // add the binary name of the app to launch here -QString %{APPNAME}::appName() const { - return QString::null; +TQString %{APPNAME}::appName() const { + return TQString::null; } // if the plugin should be excluded form the refresh cycles that can be set in the today app diff --git a/languages/cpp/app_templates/opietoday/exampleplugin.h b/languages/cpp/app_templates/opietoday/exampleplugin.h index b321f434..ebd44ba5 100644 --- a/languages/cpp/app_templates/opietoday/exampleplugin.h +++ b/languages/cpp/app_templates/opietoday/exampleplugin.h @@ -1,8 +1,8 @@ #ifndef %{APPNAME}_PLUGIN_H #define %{APPNAME}_PLUGIN_H -#include <qwidget.h> -#include <qguardedptr.h> +#include <tqwidget.h> +#include <tqguardedptr.h> #include <opie/todayplugininterface.h> #include <opie/todayconfigwidget.h> @@ -16,19 +16,19 @@ public: %{APPNAME}(); ~%{APPNAME}(); - QString pluginName() const; + TQString pluginName() const; double versionNumber() const; - QString pixmapNameWidget() const; - QWidget* widget(QWidget *); - QString pixmapNameConfig() const; - TodayConfigWidget* configWidget(QWidget *); - QString appName() const; + TQString pixmapNameWidget() const; + TQWidget* widget(TQWidget *); + TQString pixmapNameConfig() const; + TodayConfigWidget* configWidget(TQWidget *); + TQString appName() const; bool excludeFromRefresh() const; void refresh(); void reinitialize(); private: - QGuardedPtr<%{APPNAME}Widget> m_widget; + TQGuardedPtr<%{APPNAME}Widget> m_widget; }; #endif diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp index b0cb0dcc..a80dad81 100644 --- a/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp +++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.cpp @@ -3,8 +3,8 @@ #include "%{APPNAMELC}widget.h" -%{APPNAME}Widget::%{APPNAME}Widget( QWidget *parent, const char* name) - : QWidget(parent, name ) { +%{APPNAME}Widget::%{APPNAME}Widget( TQWidget *parent, const char* name) + : TQWidget(parent, name ) { m_exampleLabel = 0l; m_layout = 0l; @@ -17,12 +17,12 @@ // that should be triggered when clicked are defined in slotClicked() // of course also normal widgets can be used. m_exampleLabel = new OClickableLabel( this ); - connect( m_exampleLabel, SIGNAL( clicked() ), this, SLOT( slotClicked() ) ); + connect( m_exampleLabel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotClicked() ) ); if ( m_layout ) { delete m_layout; } - m_layout = new QHBoxLayout( this ); + m_layout = new TQHBoxLayout( this ); m_layout->setAutoAdd( true ); readConfig(); diff --git a/languages/cpp/app_templates/opietoday/examplepluginwidget.h b/languages/cpp/app_templates/opietoday/examplepluginwidget.h index 26a72128..53a67b18 100644 --- a/languages/cpp/app_templates/opietoday/examplepluginwidget.h +++ b/languages/cpp/app_templates/opietoday/examplepluginwidget.h @@ -1,16 +1,16 @@ #ifndef %{APPNAME}_PLUGIN_WIDGET_H #define %{APPNAME}_PLUGIN_WIDGET_H -#include <qlayout.h> +#include <tqlayout.h> #include <opie/oclickablelabel.h> -class %{APPNAME}Widget : public QWidget { +class %{APPNAME}Widget : public TQWidget { Q_OBJECT public: - %{APPNAME}Widget( QWidget *parent, const char *name ); + %{APPNAME}Widget( TQWidget *parent, const char *name ); ~%{APPNAME}Widget(); void refresh(); @@ -20,7 +20,7 @@ private slots: private: OClickableLabel* m_exampleLabel; - QHBoxLayout* m_layout; + TQHBoxLayout* m_layout; void readConfig(); void getInfo(); }; |