From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/querypagebase.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/querypagebase.h') diff --git a/src/querypagebase.h b/src/querypagebase.h index 8603874..1fe086c 100644 --- a/src/querypagebase.h +++ b/src/querypagebase.h @@ -28,7 +28,7 @@ #ifndef QUERYPAGEBASE_H #define QUERYPAGEBASE_H -#include +#include class QueryView; @@ -42,16 +42,16 @@ class QueryView; * of widget is defined by the different page classes. * @author Elad Lahav */ -class QueryPageBase : public QHBox +class QueryPageBase : public TQHBox { Q_OBJECT public: - QueryPageBase(QWidget* pParent = 0, const char* szName = 0); + QueryPageBase(TQWidget* pParent = 0, const char* szName = 0); ~QueryPageBase(); void applyPrefs(); - bool load(const QString&, const QString&); - bool save(const QString&, QString&); + bool load(const TQString&, const TQString&); + bool save(const TQString&, TQString&); void selectNext(); void selectPrev(); @@ -89,7 +89,7 @@ public: * @param bBrief true to generate a brief caption, false otherwise * @return The page's title */ - virtual QString getCaption(bool bBrief = false) const = 0; + virtual TQString getCaption(bool bBrief = false) const = 0; signals: /** @@ -97,7 +97,7 @@ signals: * @param sFile The "File" field of the selected record * @param nLine The "Line" field of the selected record */ - void lineRequested(const QString& sFile, uint nLine); + void lineRequested(const TQString& sFile, uint nLine); protected: /** The embedded list. */ @@ -116,8 +116,8 @@ protected: * @param sLine The "Line" field of the record * @param sText The "Text" field of the record */ - virtual void addRecord(const QString& sFile, const QString& sFunc, - const QString& sLine, const QString& sText) = 0; + virtual void addRecord(const TQString& sFile, const TQString& sFunc, + const TQString& sLine, const TQString& sText) = 0; /** * Creates a file path to store this page. @@ -126,7 +126,7 @@ protected: * @param sProjPath The project's directory * @return The page's file path */ - virtual QString getFileName(const QString& sProjPath) const = 0; + virtual TQString getFileName(const TQString& sProjPath) const = 0; /** * Tries to read the file header of a stored page. @@ -135,14 +135,14 @@ protected: * @return true if the header was read successfully and contains the * expected information, false otherwise */ - virtual bool readHeader(QTextStream& str) = 0; + virtual bool readHeader(TQTextStream& str) = 0; /** * Writes a header to a page's file. * The contents of the header differ among inheriting classes. * @param str A text stream initialised to the open page file */ - virtual void writeHeader(QTextStream& str) = 0; + virtual void writeHeader(TQTextStream& str) = 0; }; #endif -- cgit v1.2.1