summaryrefslogtreecommitdiffstats
path: root/src/calltreedlg.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/calltreedlg.cpp
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/calltreedlg.cpp')
-rw-r--r--src/calltreedlg.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/calltreedlg.cpp b/src/calltreedlg.cpp
index 65ee4f8..75c9abb 100644
--- a/src/calltreedlg.cpp
+++ b/src/calltreedlg.cpp
@@ -25,10 +25,10 @@
*
***************************************************************************/
-#include <qfile.h>
-#include <qtoolbutton.h>
-#include <qbuttongroup.h>
-#include <qwidgetstack.h>
+#include <ntqfile.h>
+#include <ntqtoolbutton.h>
+#include <ntqbuttongroup.h>
+#include <ntqwidgetstack.h>
#include <klocale.h>
#include <kfiledialog.h>
#include "calltreedlg.h"
@@ -56,7 +56,7 @@ int CallTreeDlg::s_nFileNameIndex = 0;
* @param pParent The parent widget
* @param szName The widget's name
*/
-CallTreeDlg::CallTreeDlg(QWidget* pParent, const char* szName) :
+CallTreeDlg::CallTreeDlg(TQWidget* pParent, const char* szName) :
CallTreeLayout(pParent, szName, CALL_TREE_W_FLAGS)
{
// Set button pixmaps
@@ -70,12 +70,12 @@ CallTreeDlg::CallTreeDlg(QWidget* pParent, const char* szName) :
m_pPrefButton->setPixmap(GET_PIXMAP(ButtonPref));
// Open the location of a call
- connect(m_pGraphWidget, SIGNAL(lineRequested(const QString&, uint)),
- this, SIGNAL(lineRequested(const QString&, uint)));
- connect(m_pCalledWidget, SIGNAL(lineRequested(const QString&, uint)),
- this, SIGNAL(lineRequested(const QString&, uint)));
- connect(m_pCallingWidget, SIGNAL(lineRequested(const QString&, uint)),
- this, SIGNAL(lineRequested(const QString&, uint)));
+ connect(m_pGraphWidget, SIGNAL(lineRequested(const TQString&, uint)),
+ this, SIGNAL(lineRequested(const TQString&, uint)));
+ connect(m_pCalledWidget, SIGNAL(lineRequested(const TQString&, uint)),
+ this, SIGNAL(lineRequested(const TQString&, uint)));
+ connect(m_pCallingWidget, SIGNAL(lineRequested(const TQString&, uint)),
+ this, SIGNAL(lineRequested(const TQString&, uint)));
m_pCallingWidget->setMode(TreeWidget::Calling);
@@ -93,14 +93,14 @@ CallTreeDlg::~CallTreeDlg()
/**
* @param sFunc The function to use as the root of the call tree
*/
-void CallTreeDlg::setRoot(const QString& sFunc)
+void CallTreeDlg::setRoot(const TQString& sFunc)
{
m_sRoot = sFunc;
// Generate unique file name to save call tree later
m_sFileName = sFunc;
m_sFileName.replace(' ', '_');
- m_sFileName += QString::number(++s_nFileNameIndex);
+ m_sFileName += TQString::number(++s_nFileNameIndex);
// Set the root item in all views
m_pGraphWidget->setRoot(sFunc);
@@ -129,13 +129,13 @@ void CallTreeDlg::show()
* is therefore safe to delete the graph file at this point.
* @param pEvent Information on the closing event
*/
-void CallTreeDlg::closeEvent(QCloseEvent* pEvent)
+void CallTreeDlg::closeEvent(TQCloseEvent* pEvent)
{
if (!m_sFilePath.isEmpty())
- QFile::remove(m_sFilePath);
+ TQFile::remove(m_sFilePath);
emit closed(this);
- QWidget::closeEvent(pEvent);
+ TQWidget::closeEvent(pEvent);
}
extern void yyinit(CallTreeDlg*, FILE*, Encoder*);
@@ -148,9 +148,9 @@ extern int yyparse();
* @param sFileName The name of the call tree file to load
* @return true if successful, false otherwise
*/
-bool CallTreeDlg::load(const QString& sProjPath, const QString& sFileName)
+bool CallTreeDlg::load(const TQString& sProjPath, const TQString& sFileName)
{
- QString sPath;
+ TQString sPath;
FILE* pFile;
int nVersion, nView, nResult;
Encoder enc;
@@ -203,9 +203,9 @@ bool CallTreeDlg::load(const QString& sProjPath, const QString& sFileName)
* closed.
* @param sProjPath The full path of the project directory
*/
-void CallTreeDlg::store(const QString& sProjPath)
+void CallTreeDlg::store(const TQString& sProjPath)
{
- QString sPath;
+ TQString sPath;
FILE* pFile;
// Create the full file path
@@ -238,7 +238,7 @@ void CallTreeDlg::store(const QString& sProjPath)
*/
void CallTreeDlg::slotSaveClicked()
{
- QString sFile;
+ TQString sFile;
// Prompt the user for a file name
sFile = KFileDialog::getSaveFileName(":kscope");
@@ -287,7 +287,7 @@ void CallTreeDlg::slotPrefClicked()
GraphPrefDlg dlg(this);
int nMaxNodeDegree;
- if (dlg.exec() == QDialog::Accepted) {
+ if (dlg.exec() == TQDialog::Accepted) {
nMaxNodeDegree = dlg.getMaxNodeDegree();
Config().setGraphMaxNodeDegree(nMaxNodeDegree);
m_pGraphWidget->setMaxNodeDegree(nMaxNodeDegree);