diff options
Diffstat (limited to 'ksayit/KTTSD_Lib')
-rw-r--r-- | ksayit/KTTSD_Lib/KTTSDlibSetup.ui | 20 | ||||
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlib.cpp | 8 | ||||
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlib.h | 9 | ||||
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp | 8 | ||||
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlibsetupimpl.h | 5 | ||||
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlibtalker2.cpp | 6 | ||||
-rw-r--r-- | ksayit/KTTSD_Lib/kttsdlibtalker2.h | 5 |
7 files changed, 32 insertions, 29 deletions
diff --git a/ksayit/KTTSD_Lib/KTTSDlibSetup.ui b/ksayit/KTTSD_Lib/KTTSDlibSetup.ui index 8c624e4..29be316 100644 --- a/ksayit/KTTSD_Lib/KTTSDlibSetup.ui +++ b/ksayit/KTTSD_Lib/KTTSDlibSetup.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.2" stdsetdef="1"> <class>KTTSDlibSetup</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>KTTSDlibSetup</cstring> </property> @@ -19,7 +19,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -49,9 +49,9 @@ <enum>Horizontal</enum> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>layout1</cstring> + <cstring>tqlayout1</cstring> </property> <hbox> <property name="name"> @@ -67,14 +67,14 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>40</width> <height>20</height> </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>kcm_Button</cstring> </property> @@ -95,7 +95,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>40</width> <height>20</height> @@ -114,8 +114,8 @@ <slot>slotLaunchControlcenter()</slot> </connection> </connections> -<slots> +<Q_SLOTS> <slot access="protected">slotLaunchControlcenter()</slot> -</slots> -<layoutdefaults spacing="6" margin="11"/> +</Q_SLOTS> +<tqlayoutdefaults spacing="6" margin="11"/> </UI> diff --git a/ksayit/KTTSD_Lib/kttsdlib.cpp b/ksayit/KTTSD_Lib/kttsdlib.cpp index f41670b..9680a88 100644 --- a/ksayit/KTTSD_Lib/kttsdlib.cpp +++ b/ksayit/KTTSD_Lib/kttsdlib.cpp @@ -11,7 +11,7 @@ // // #include <time.h> // nanosleep -// Qt includes +// TQt includes #include <tqstring.h> #include <tqstringlist.h> @@ -27,8 +27,8 @@ #include "kttsdlibsetupimpl.h" -KTTSDLib::KTTSDLib(TQObject *parent, const char *name, KApplication *Appl) - : TQObject(parent, name), m_Appl(Appl) +KTTSDLib::KTTSDLib(TQObject *tqparent, const char *name, KApplication *Appl) + : TQObject(tqparent, name), m_Appl(Appl) { KGlobal::locale()->insertCatalogue("libKTTSD"); m_talker = new kttsdlibtalker2(static_cast<TQObject*>(this), "kttsdlibtalker"); @@ -81,7 +81,7 @@ int KTTSDLib::getActions() } -int KTTSDLib::getStatus() const +int KTTSDLib::gettqStatus() const { return TTS::AUDIOFILE; } diff --git a/ksayit/KTTSD_Lib/kttsdlib.h b/ksayit/KTTSD_Lib/kttsdlib.h index eb57912..929ef3a 100644 --- a/ksayit/KTTSD_Lib/kttsdlib.h +++ b/ksayit/KTTSD_Lib/kttsdlib.h @@ -45,9 +45,10 @@ class kttsdlibtalker2; /** @author Robert Vogl */ -class KDE_EXPORT KTTSDLib : public QObject +class KDE_EXPORT KTTSDLib : public TQObject { -Q_OBJECT +Q_OBJECT +TQ_OBJECT signals: /** Emitted when the plugin has been finished speeking. */ @@ -70,7 +71,7 @@ public slots: void slotTextStarted(const uint job); public: - KTTSDLib(TQObject *parent=0, const char *name=0, KApplication *Appl=0); + KTTSDLib(TQObject *tqparent=0, const char *name=0, KApplication *Appl=0); ~KTTSDLib(); @@ -92,7 +93,7 @@ public: void sayText(); - int getStatus() const; + int gettqStatus() const; void stop(); diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp index 1cb8bc9..0ade8fe 100644 --- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp +++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp @@ -12,7 +12,7 @@ #include <stdio.h> -// Qt includes +// TQt includes #include <tqpushbutton.h> // KDE includes @@ -23,8 +23,8 @@ // App specific includes #include "kttsdlibsetupimpl.h" -KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *parent, const char *name) - : KTTSDlibSetup(parent, name) +KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *tqparent, const char *name) + : KTTSDlibSetup(tqparent, name) { } @@ -47,7 +47,7 @@ void KTTSDlibSetupImpl::slotLaunchControlcenter() fgets(cmdresult, 18, fp); pclose(fp); } - if ( !TQCString(cmdresult).contains("kcmkttsd") ){ + if ( !TQCString(cmdresult).tqcontains("kcmkttsd") ){ TQString error = i18n("Control Center Module for KTTSD not found."); KMessageBox::sorry(this, error, i18n("Problem")); return; diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h index cd36430..ed49df4 100644 --- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h +++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h @@ -12,7 +12,7 @@ #ifndef KTTSDSETUPIMPL_H #define KTTSDSETUPIMPL_H -// Qt includes +// TQt includes // KDE includes #include <kprocess.h> @@ -26,8 +26,9 @@ class KTTSDlibSetupImpl : public KTTSDlibSetup { Q_OBJECT + TQ_OBJECT public: - KTTSDlibSetupImpl(TQWidget *parent = 0, const char *name = 0); + KTTSDlibSetupImpl(TQWidget *tqparent = 0, const char *name = 0); ~KTTSDlibSetupImpl(); diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp index c88a96b..10fceb9 100644 --- a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp +++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp @@ -12,7 +12,7 @@ #include <unistd.h> //sleep -// Qt includes +// TQt includes #include <tqstring.h> // KDE includes @@ -21,8 +21,8 @@ // App specific includes #include "kttsdlibtalker2.h" -kttsdlibtalker2::kttsdlibtalker2(TQObject *parent, const char *name) - : TQObject(parent, name), DCOPStub("kttsd", "KSpeech") +kttsdlibtalker2::kttsdlibtalker2(TQObject *tqparent, const char *name) + : TQObject(tqparent, name), DCOPStub("kttsd", "KSpeech") { m_client = NULL; diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.h b/ksayit/KTTSD_Lib/kttsdlibtalker2.h index 29b6371..6627a6e 100644 --- a/ksayit/KTTSD_Lib/kttsdlibtalker2.h +++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.h @@ -12,7 +12,7 @@ #ifndef KTTSDLIBTALKER2_H #define KTTSDLIBTALKER2_H -// Qt includes +// TQt includes #include <tqobject.h> #include <tqcstring.h> @@ -29,6 +29,7 @@ class kttsdlibtalker2 : public TQObject, public KSpeech_stub, virtual public KSpeechSink { Q_OBJECT + TQ_OBJECT signals: void signalTextStarted(const uint); @@ -36,7 +37,7 @@ signals: void signalTextStopped(const uint); public: - kttsdlibtalker2(TQObject *parent = 0, const char *name = 0); + kttsdlibtalker2(TQObject *tqparent = 0, const char *name = 0); ~kttsdlibtalker2(); |