diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-10-08 00:13:25 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-10-08 05:14:53 +0200 |
commit | 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch) | |
tree | 770861aa9033e1dc6c5168358194ff85b32dd429 /src/makedlg.cpp | |
parent | 57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff) | |
download | kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip |
Initial TQt conversion
Diffstat (limited to 'src/makedlg.cpp')
-rw-r--r-- | src/makedlg.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/makedlg.cpp b/src/makedlg.cpp index ac60129..8bcc5ad 100644 --- a/src/makedlg.cpp +++ b/src/makedlg.cpp @@ -25,7 +25,7 @@ * ***************************************************************************/ -#include <qtextcodec.h> +#include <ntqtextcodec.h> #include <ktextbrowser.h> #include <kcombobox.h> #include <kurlrequester.h> @@ -46,11 +46,11 @@ * @param pParent The parent widget * @param szName The widget's name */ -MakeDlg::MakeDlg(QWidget* pParent, const char* szName) : +MakeDlg::MakeDlg(TQWidget* pParent, const char* szName) : MakeLayout(pParent, szName, MAKE_DLG_W_FLAGS) { // Don't show the "Function" column - m_pErrorView->setColumnWidthMode(0, QListView::Manual); + m_pErrorView->setColumnWidthMode(0, TQListView::Manual); m_pErrorView->setColumnWidth(0, 0); // Create a new make front-end @@ -59,21 +59,21 @@ MakeDlg::MakeDlg(QWidget* pParent, const char* szName) : SLOT(slotShowOutput(FrontendToken*))); connect(m_pMake, SIGNAL(finished(uint)), this, SLOT(slotFinished(uint))); connect(m_pMake, - SIGNAL(error(const QString&, const QString&, const QString&)), + SIGNAL(error(const TQString&, const TQString&, const TQString&)), this, - SLOT(slotAddError(const QString&, const QString&, const QString&))); + SLOT(slotAddError(const TQString&, const TQString&, const TQString&))); // The Root URL control should browse directories m_pRootURL->setMode(KFile::Directory); // Handle URL links in the browser m_pOutputBrowser->setNotifyClick(true); - connect(m_pOutputBrowser, SIGNAL(urlClick(const QString&)), this, - SLOT(slotBrowserClicked(const QString&))); + connect(m_pOutputBrowser, SIGNAL(urlClick(const TQString&)), this, + SLOT(slotBrowserClicked(const TQString&))); // Handle selections in the error view - connect(m_pErrorView, SIGNAL(lineRequested(const QString& , uint)), this, - SIGNAL(fileRequested(const QString&, uint))); + connect(m_pErrorView, SIGNAL(lineRequested(const TQString& , uint)), this, + SIGNAL(fileRequested(const TQString&, uint))); // Do not allow duplicates in the command history m_pCommandHistory->setDuplicatesEnabled(false); @@ -90,7 +90,7 @@ MakeDlg::~ MakeDlg() /** * @return The currently set make command */ -QString MakeDlg::getCommand() const +TQString MakeDlg::getCommand() const { return m_pCommandHistory->currentText(); } @@ -98,7 +98,7 @@ QString MakeDlg::getCommand() const /** * @param sCmd The new make command to use */ -void MakeDlg::setCommand(const QString& sCmd) +void MakeDlg::setCommand(const TQString& sCmd) { m_pCommandHistory->setCurrentText(sCmd); m_pCommandHistory->addToHistory(sCmd); @@ -107,7 +107,7 @@ void MakeDlg::setCommand(const QString& sCmd) /** * @return The directory in which to run the make command */ -QString MakeDlg::getDir() const +TQString MakeDlg::getDir() const { return m_pRootURL->url(); } @@ -115,7 +115,7 @@ QString MakeDlg::getDir() const /** * @param sURL The new root directory to use */ -void MakeDlg::setDir(const QString& sURL) +void MakeDlg::setDir(const TQString& sURL) { m_pRootURL->setURL(sURL); } @@ -127,7 +127,7 @@ void MakeDlg::setDir(const QString& sURL) * is killed. * @param pEvent The close event descriptor */ -void MakeDlg::closeEvent(QCloseEvent* pEvent) +void MakeDlg::closeEvent(TQCloseEvent* pEvent) { // Check if a process is currently running if (m_pMake->isRunning()) { @@ -151,7 +151,7 @@ void MakeDlg::closeEvent(QCloseEvent* pEvent) } } - QWidget::closeEvent(pEvent); + TQWidget::closeEvent(pEvent); } /** @@ -160,7 +160,7 @@ void MakeDlg::closeEvent(QCloseEvent* pEvent) */ void MakeDlg::slotMake() { - QString sCommand; + TQString sCommand; // Clear the current contents m_pOutputBrowser->clear(); @@ -168,7 +168,7 @@ void MakeDlg::slotMake() // Run the make command sCommand = m_pCommandHistory->currentText(); - if (!m_pMake->run("make", QStringList::split(" ", sCommand), + if (!m_pMake->run("make", TQStringList::split(" ", sCommand), m_pRootURL->url())) { KMessageBox::error(this, m_pMake->getRunError()); return; @@ -198,11 +198,11 @@ void MakeDlg::slotStop() */ void MakeDlg::slotShowOutput(FrontendToken* pToken) { - QString sData; + TQString sData; // GCC uses unicode quote characters - this should ensure that they are // treated correctly by the text browser widget - sData = QTextCodec::codecForLocale()->toUnicode(pToken->getData()); + sData = TQTextCodec::codecForLocale()->toUnicode(pToken->getData()); m_pOutputBrowser->append(sData); } @@ -231,10 +231,10 @@ void MakeDlg::slotFinished(uint) * This slot is connected to the urlClick() signal of the browser. * @param sURL The requested URL */ -void MakeDlg::slotBrowserClicked(const QString& sURL) +void MakeDlg::slotBrowserClicked(const TQString& sURL) { - QString sFile; - QString sLine; + TQString sFile; + TQString sLine; // Exract the file name and the line number from the URL sFile = sURL.section('&', 0, 0); @@ -255,12 +255,12 @@ void MakeDlg::slotBrowserClicked(const QString& sURL) * @param sLine The line number * @param sText An explanation of the error */ -void MakeDlg::slotAddError(const QString& sFile, const QString& sLine, - const QString& sText) +void MakeDlg::slotAddError(const TQString& sFile, const TQString& sLine, + const TQString& sText) { - QString sUniText; + TQString sUniText; - sUniText = QTextCodec::codecForLocale()->toUnicode(sText); + sUniText = TQTextCodec::codecForLocale()->toUnicode(sText); m_pErrorView->addRecord("", sFile, sLine, sUniText); } |