summaryrefslogtreecommitdiffstats
path: root/src/querypage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/querypage.cpp')
-rw-r--r--src/querypage.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/querypage.cpp b/src/querypage.cpp
index 502747b..c5e9b9a 100644
--- a/src/querypage.cpp
+++ b/src/querypage.cpp
@@ -25,7 +25,7 @@
*
***************************************************************************/
-#include <qfile.h>
+#include <ntqfile.h>
#include <klocale.h>
#include "querypage.h"
#include "queryview.h"
@@ -49,15 +49,15 @@ const char* QUERY_TYPES[][2] = {
* @param pParent The parent widget
* @param szName The widget's name
*/
-QueryPage::QueryPage(QWidget* pParent, const char * szName) :
+QueryPage::QueryPage(TQWidget* pParent, const char * szName) :
QueryPageBase(pParent, szName),
m_nType(CscopeFrontend::None)
{
m_pView = new QueryView(this);
m_pDriver = new QueryViewDriver(m_pView, this);
- connect(m_pView, SIGNAL(lineRequested(const QString&, uint)), this,
- SIGNAL(lineRequested(const QString&, uint)));
+ connect(m_pView, SIGNAL(lineRequested(const TQString&, uint)), this,
+ SIGNAL(lineRequested(const TQString&, uint)));
// Set colours and font
applyPrefs();
@@ -76,7 +76,7 @@ QueryPage::~QueryPage()
* @param sText The text of the query
* @param bCase true for case-sensitive queries, false otherwise
*/
-void QueryPage::query(uint nType, const QString& sText, bool bCase)
+void QueryPage::query(uint nType, const TQString& sText, bool bCase)
{
m_nType = nType;
m_sText = sText;
@@ -103,8 +103,8 @@ void QueryPage::clear()
{
m_pView->clear();
m_nType = CscopeFrontend::None;
- m_sText = QString();
- m_sName = QString();
+ m_sText = TQString();
+ m_sName = TQString();
}
/**
@@ -121,9 +121,9 @@ bool QueryPage::isRunning()
* (default) for the full version
* @return The caption for this page
*/
-QString QueryPage::getCaption(bool bBrief) const
+TQString QueryPage::getCaption(bool bBrief) const
{
- return QString(QUERY_TYPES[m_nType][bBrief ? 1 : 0] + m_sText);
+ return TQString(QUERY_TYPES[m_nType][bBrief ? 1 : 0] + m_sText);
}
/**
@@ -133,10 +133,10 @@ QString QueryPage::getCaption(bool bBrief) const
* @param sLine The line number
* @param sText The contents of the line
*/
-void QueryPage::addRecord(const QString& sFile, const QString& sFunc,
- const QString& sLine, const QString& sText)
+void QueryPage::addRecord(const TQString& sFile, const TQString& sFunc,
+ const TQString& sLine, const TQString& sText)
{
- new QListViewItem(m_pView, sFile, sFunc, sLine, sText);
+ new TQListViewItem(m_pView, sFile, sFunc, sLine, sText);
}
/**
@@ -144,9 +144,9 @@ void QueryPage::addRecord(const QString& sFile, const QString& sFunc,
* @param sProjPath The full path of the project directory
* @return The unique file name to use
*/
-QString QueryPage::getFileName(const QString& sProjPath) const
+TQString QueryPage::getFileName(const TQString& sProjPath) const
{
- QString sFileName, sFileNameBase;
+ TQString sFileName, sFileNameBase;
int i = 0;
// Do nothing if not initialised
@@ -157,8 +157,8 @@ QString QueryPage::getFileName(const QString& sProjPath) const
sFileNameBase = m_sName;
sFileNameBase.replace(' ', '_');
do {
- sFileName = sFileNameBase + QString::number(++i);
- } while (QFile(sProjPath + "/" + sFileName).exists());
+ sFileName = sFileNameBase + TQString::number(++i);
+ } while (TQFile(sProjPath + "/" + sFileName).exists());
return sFileName;
}
@@ -169,18 +169,18 @@ QString QueryPage::getFileName(const QString& sProjPath) const
* @param str A text stream set to the correct place in the file
* @return true if successful, false otherwise
*/
-bool QueryPage::readHeader(QTextStream& str)
+bool QueryPage::readHeader(TQTextStream& str)
{
- QString sTemp;
+ TQString sTemp;
// Read the query name
m_sName = str.readLine();
- if (m_sName == QString::null || m_sName.isEmpty())
+ if (m_sName == TQString::null || m_sName.isEmpty())
return false;
// Read the query's type
sTemp = str.readLine();
- if (sTemp == QString::null || sTemp.isEmpty())
+ if (sTemp == TQString::null || sTemp.isEmpty())
return false;
// Convert the type string to an integer
@@ -192,7 +192,7 @@ bool QueryPage::readHeader(QTextStream& str)
// Read the query's text
m_sText = str.readLine();
- if (m_sText == QString::null || m_sText.isEmpty())
+ if (m_sText == TQString::null || m_sText.isEmpty())
return false;
return true;
@@ -203,7 +203,7 @@ bool QueryPage::readHeader(QTextStream& str)
* This mehtod is used as part of the storing process.
* @param str A text stream set to the correct place in the file
*/
-void QueryPage::writeHeader(QTextStream& str)
+void QueryPage::writeHeader(TQTextStream& str)
{
str << m_sName << "\n" << m_nType << "\n" << m_sText << "\n";
}