summaryrefslogtreecommitdiffstats
path: root/src/cscopefrontend.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-10-08 00:13:25 +0200
committerSlávek Banko <[email protected]>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/cscopefrontend.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/cscopefrontend.cpp')
-rw-r--r--src/cscopefrontend.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/cscopefrontend.cpp b/src/cscopefrontend.cpp
index 7c8f288..79d829e 100644
--- a/src/cscopefrontend.cpp
+++ b/src/cscopefrontend.cpp
@@ -25,8 +25,8 @@
*
***************************************************************************/
-#include <qfileinfo.h>
-#include <qtimer.h>
+#include <ntqfileinfo.h>
+#include <ntqtimer.h>
#include <kconfig.h>
#include <kmessagebox.h>
#include <klocale.h>
@@ -41,7 +41,7 @@
#define REGEXP_STR "Symbols matched %d of %d"
#define SEARCHEND_STR "%d lines"
-QString CscopeFrontend::s_sProjPath;
+TQString CscopeFrontend::s_sProjPath;
uint CscopeFrontend::s_nProjArgs;
uint CscopeFrontend::s_nSupArgs;
@@ -72,9 +72,9 @@ CscopeFrontend::~CscopeFrontend()
* @param slArgs Command line arguments for Cscope
* @return true if successful, false otherwise
*/
-bool CscopeFrontend::run(const QStringList& slArgs)
+bool CscopeFrontend::run(const TQStringList& slArgs)
{
- QStringList slCmdLine;
+ TQStringList slCmdLine;
// Set the command line arguments
slCmdLine.append(Config().getCscopePath());
@@ -113,16 +113,16 @@ bool CscopeFrontend::run(const QStringList& slArgs)
* @param nMaxRecords The maximal number of records to return (abort if this
* number is exceeded)
*/
-void CscopeFrontend::query(uint nType, const QString& sText, bool bCase,
+void CscopeFrontend::query(uint nType, const TQString& sText, bool bCase,
uint nMaxRecords)
{
- QString sQuery;
- QStringList slArgs;
+ TQString sQuery;
+ TQStringList slArgs;
m_nMaxRecords = nMaxRecords;
// Create the Cscope command line
- slArgs.append(QString("-L") + QString::number(nType));
+ slArgs.append(TQString("-L") + TQString::number(nType));
slArgs.append(sText);
slArgs.append("-d");
if (!bCase)
@@ -142,7 +142,7 @@ void CscopeFrontend::query(uint nType, const QString& sText, bool bCase,
*/
void CscopeFrontend::rebuild()
{
- QStringList slArgs;
+ TQStringList slArgs;
// If a process is already running, kill it start a new one
if (isRunning()) {
@@ -168,7 +168,7 @@ void CscopeFrontend::rebuild()
* @param sProjPath The full path of the project's directory
* @param nArgs Project-specific command-line arguments
*/
-void CscopeFrontend::init(const QString& sProjPath, uint nArgs)
+void CscopeFrontend::init(const TQString& sProjPath, uint nArgs)
{
s_sProjPath = sProjPath;
s_nProjArgs = nArgs;
@@ -191,7 +191,7 @@ void CscopeFrontend::slotCancel()
* @return A value indicating the way this token should be treated: dropped,
* added to the token queue, or finishes a new record
*/
-Frontend::ParseResult CscopeFrontend::parseStdout(QString& sToken,
+Frontend::ParseResult CscopeFrontend::parseStdout(TQString& sToken,
ParserDelim /* ignored */)
{
int nFiles, nTotal, nRecords;
@@ -345,7 +345,7 @@ Frontend::ParseResult CscopeFrontend::parseStdout(QString& sToken,
* Handles Cscope messages sent to the standard error stream.
* @param sText The error message text
*/
-void CscopeFrontend::parseStderr(const QString& sText)
+void CscopeFrontend::parseStderr(const TQString& sText)
{
// Wait for a complete line to arrive
m_sErrMsg += sText;
@@ -381,7 +381,7 @@ void CscopeFrontend::finalize()
* @param pMainWidget The parent widget to use for the progress bar and
* label
*/
-CscopeProgress::CscopeProgress(QWidget* pMainWidget) : QObject(),
+CscopeProgress::CscopeProgress(TQWidget* pMainWidget) : TQObject(),
m_pMainWidget(pMainWidget),
m_pProgressBar(NULL),
m_pLabel(NULL)
@@ -415,9 +415,9 @@ void CscopeProgress::setProgress(int nProgress, int nTotal)
// Show the "Please wait..." label
if (m_pLabel == NULL) {
- m_pLabel = new QLabel(i18n("Processing query results, "
+ m_pLabel = new TQLabel(i18n("Processing query results, "
"please wait..."), m_pMainWidget);
- m_pLabel->setFrameStyle(QFrame::Box | QFrame::Plain);
+ m_pLabel->setFrameStyle(TQFrame::Box | TQFrame::Plain);
m_pLabel->setLineWidth(1);
m_pLabel->adjustSize();
@@ -426,7 +426,7 @@ void CscopeProgress::setProgress(int nProgress, int nTotal)
m_pLabel->setPaletteForegroundColor(
KGlobalSettings::highlightedTextColor());
- QTimer::singleShot(1000, this, SLOT(slotShowLabel()));
+ TQTimer::singleShot(1000, this, SLOT(slotShowLabel()));
}
return;
@@ -437,8 +437,8 @@ void CscopeProgress::setProgress(int nProgress, int nTotal)
// first progress signal is received. Thus the bar will not be displayed
// on very short queries.
if (m_pProgressBar == NULL) {
- m_pProgressBar = new QProgressBar(m_pMainWidget);
- QTimer::singleShot(1000, this, SLOT(slotShowProgressBar()));
+ m_pProgressBar = new TQProgressBar(m_pMainWidget);
+ TQTimer::singleShot(1000, this, SLOT(slotShowProgressBar()));
}
// Set the current progress value
@@ -490,14 +490,14 @@ void CscopeVerifier::verify()
ConfigFrontend* pConf;
pConf = new ConfigFrontend(true);
- connect(pConf, SIGNAL(result(uint, const QString&)), this,
- SLOT(slotConfigResult(uint, const QString&)));
+ connect(pConf, SIGNAL(result(uint, const TQString&)), this,
+ SLOT(slotConfigResult(uint, const TQString&)));
connect(pConf, SIGNAL(finished(uint)), this, SLOT(slotFinished()));
pConf->run(Config().getCscopePath(), "", "", true);
}
-void CscopeVerifier::slotConfigResult(uint nType, const QString& sResult)
+void CscopeVerifier::slotConfigResult(uint nType, const TQString& sResult)
{
switch (nType) {
case ConfigFrontend::CscopeVerbose: