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.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/querypagebase.cpp') diff --git a/src/querypagebase.cpp b/src/querypagebase.cpp index 08cbe6d..8af1872 100644 --- a/src/querypagebase.cpp +++ b/src/querypagebase.cpp @@ -25,7 +25,7 @@ * ***************************************************************************/ -#include +#include #include "querypagebase.h" #include "queryview.h" #include "kscopeconfig.h" @@ -37,8 +37,8 @@ * @param pParent The parent widget * @param szName The widget's name */ -QueryPageBase::QueryPageBase(QWidget* pParent, const char* szName) : - QHBox(pParent, szName), +QueryPageBase::QueryPageBase(TQWidget* pParent, const char* szName) : + TQHBox(pParent, szName), m_bLocked(false) { } @@ -70,20 +70,20 @@ void QueryPageBase::applyPrefs() * @param sFileName The name of the query file to load * @return true if successful, false otherwise */ -bool QueryPageBase::load(const QString& sProjPath, const QString& sFileName) +bool QueryPageBase::load(const TQString& sProjPath, const TQString& sFileName) { - QString sTemp, sFile, sFunc, sLine, sText; + TQString sTemp, sFile, sFunc, sLine, sText; int nState; // Try to open the query file for reading - QFile file(sProjPath + "/" + sFileName); + TQFile file(sProjPath + "/" + sFileName); if (!file.open(IO_ReadOnly)) return false; { - // Use a new scope for the QTextStream object, to ensure its + // Use a new scope for the TQTextStream object, to ensure its // destruction before the file is deleted - QTextStream str(&file); + TQTextStream str(&file); // Make sure the file's version is correct sTemp = str.readLine(); @@ -99,7 +99,7 @@ bool QueryPageBase::load(const QString& sProjPath, const QString& sFileName) // Read query records sTemp = str.readLine(); nState = 0; - while (sTemp != QString::null) { + while (sTemp != TQString::null) { switch (nState) { // File path case 0: @@ -143,9 +143,9 @@ bool QueryPageBase::load(const QString& sProjPath, const QString& sFileName) * return * @return true if successful, false otherwise */ -bool QueryPageBase::save(const QString& sProjPath, QString& sFileName) +bool QueryPageBase::save(const TQString& sProjPath, TQString& sFileName) { - QListViewItemIterator itr(m_pView); + TQListViewItemIterator itr(m_pView); // Get the file name to use sFileName = getFileName(sProjPath); @@ -153,11 +153,11 @@ bool QueryPageBase::save(const QString& sProjPath, QString& sFileName) return false; // Open the query file for writing - QFile file(sProjPath + "/" + sFileName); + TQFile file(sProjPath + "/" + sFileName); if (!file.open(IO_WriteOnly)) return false; - QTextStream str(&file); + TQTextStream str(&file); // Write the version string str << FILE_VERSION << "\n"; -- cgit v1.2.1