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/calltreedlg.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/calltreedlg.cpp') 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 -#include -#include -#include +#include +#include +#include +#include #include #include #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); -- cgit v1.2.1