From 94ddde53d91cbdb554bbe78b108ccbd6a7d7c13a Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 21:30:26 +0000 Subject: TQt4 port potracegui This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/potracegui@1239033 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/autotraceformats.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/autotraceformats.h') diff --git a/src/autotraceformats.h b/src/autotraceformats.h index 00359d8..aa00e9b 100644 --- a/src/autotraceformats.h +++ b/src/autotraceformats.h @@ -20,34 +20,35 @@ #ifndef AUTOTRACEFORMATS_H #define AUTOTRACEFORMATS_H -#include -#include -#include +#include +#include +#include //! Class to read autotrace input and output formats /** This class executes autotrace to gain informations about the formats it can use * \author Antonio Fasolato */ -class AutotraceFormats : public QObject +class AutotraceFormats : public TQObject { Q_OBJECT + TQ_OBJECT public: - //! Standard QObject-like constructor + //! Standard TQObject-like constructor /** The constructor, nothing fancy - * \param parent The parent of the QObject - * \param name The name of the QObject + * \param tqparent The tqparent of the TQObject + * \param name The name of the TQObject */ - AutotraceFormats(QObject *parent = 0, const char *name = 0); + AutotraceFormats(TQObject *tqparent = 0, const char *name = 0); //!Returns the list of supported input formats /** This class returns the list of formats returned by autotrace -list-input-formats * \return The supported formats */ - QStringList inputFormats(); + TQStringList inputFormats(); //!Returns the list of supported output formats /** This class returns the list of formats returned by autotrace -list-output-formats * \return The supported formats */ - QStringList outputFormats(); + TQStringList outputFormats(); //! Function to test the execution of autotrace /** This functions returns true if the autotrace command could be run succesfully. If it returns * false autotrace executable can not be found in the environment @@ -62,13 +63,13 @@ public: private: //! The process to get input formats - QProcess *inputProcess; + TQProcess *inputProcess; //! The process to get output formats - QProcess *outputProcess; + TQProcess *outputProcess; //! The list of input formats - QStringList input; + TQStringList input; //! The list of output formats - QStringList output; + TQStringList output; //! true if autotrace could be run bool allOK; -- cgit v1.2.1