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/symboldlg.cpp | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/symboldlg.cpp') diff --git a/src/symboldlg.cpp b/src/symboldlg.cpp index 3301678..8ec631c 100644 --- a/src/symboldlg.cpp +++ b/src/symboldlg.cpp @@ -25,26 +25,26 @@ * ***************************************************************************/ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include #include "symboldlg.h" #include "cscopefrontend.h" #include "kscopeconfig.h" -QStringList SymbolDlg::s_slHistory; +TQStringList SymbolDlg::s_slHistory; /** * Class constructor. * @param pParent Parent widget * @param szName This widget's name */ -SymbolDlg::SymbolDlg(QWidget* pParent, const char* szName) : +SymbolDlg::SymbolDlg(TQWidget* pParent, const char* szName) : SymbolLayout(pParent, szName, true, 0), m_progress(m_pHintList) { @@ -54,7 +54,7 @@ SymbolDlg::SymbolDlg(QWidget* pParent, const char* szName) : // Initialise the hint list (hidden by default) m_pHintList->addColumn(i18n("Suggested Symbols")); m_pHintList->hide(); - ((QWidget*)m_pHintGroup)->hide(); + ((TQWidget*)m_pHintGroup)->hide(); m_pBeginWithRadio->toggle(); adjustSize(); @@ -74,13 +74,13 @@ SymbolDlg::SymbolDlg(QWidget* pParent, const char* szName) : SLOT(slotTypeChanged(int))); // Selecting an item in the hint list sets it as the current text - connect(m_pHintList, SIGNAL(selectionChanged(QListViewItem*)), this, - SLOT(slotHintItemSelected(QListViewItem*))); + connect(m_pHintList, SIGNAL(selectionChanged(TQListViewItem*)), this, + SLOT(slotHintItemSelected(TQListViewItem*))); // Double-clicking an item in the hint list accepts that item as the // result of the query (i.e., the item is selcted and the dialogue is // closed) - connect(m_pHintList, SIGNAL(doubleClicked(QListViewItem*)), this, + connect(m_pHintList, SIGNAL(doubleClicked(TQListViewItem*)), this, SLOT(accept())); // Refresh the hint list when the hint options change @@ -117,7 +117,7 @@ void SymbolDlg::setType(uint nType) /** * @param sSymbol The initial text of the combo-box */ -void SymbolDlg::setSymbol(const QString& sSymbol) +void SymbolDlg::setSymbol(const TQString& sSymbol) { m_pSymbolHC->setCurrentText(sSymbol); } @@ -125,7 +125,7 @@ void SymbolDlg::setSymbol(const QString& sSymbol) /** * @param slSymHistory A list of previously queried symbols */ -void SymbolDlg::setHistory(QStringList& slSymHistory) +void SymbolDlg::setHistory(TQStringList& slSymHistory) { m_pSymbolHC->setHistoryItems(slSymHistory); } @@ -133,9 +133,9 @@ void SymbolDlg::setHistory(QStringList& slSymHistory) /** * @return The current text of the symbol combo-box */ -QString SymbolDlg::getSymbol() const +TQString SymbolDlg::getSymbol() const { - QString sResult; + TQString sResult; sResult = m_pSymbolHC->currentText().stripWhiteSpace(); if (m_pSubStringCheck->isChecked()) @@ -169,8 +169,8 @@ bool SymbolDlg::getCase() const * @return The text entered by the user in the symbol combo-box, or an empty * string if the dialogue was cancelled */ -QString SymbolDlg::promptSymbol(QWidget* pParent, uint& nType, - const QString& sSymbol, bool& bCase) +TQString SymbolDlg::promptSymbol(TQWidget* pParent, uint& nType, + const TQString& sSymbol, bool& bCase) { SymbolDlg dlg(pParent); @@ -180,7 +180,7 @@ QString SymbolDlg::promptSymbol(QWidget* pParent, uint& nType, dlg.setSymbol(sSymbol); // Display the dialogue - if (dlg.exec() != QDialog::Accepted) + if (dlg.exec() != TQDialog::Accepted) return ""; // Return the text entered by the user @@ -215,12 +215,12 @@ uint SymbolDlg::getQueryType(uint nType) */ void SymbolDlg::slotHintClicked() { - QString sText, sRegExp; + TQString sText, sRegExp; // Show the hint list if necessary if (!m_pHintList->isVisible()) { m_pHintList->show(); - ((QWidget*)m_pHintGroup)->show(); + ((TQWidget*)m_pHintGroup)->show(); adjustSize(); } @@ -253,7 +253,7 @@ void SymbolDlg::slotHintClicked() */ void SymbolDlg::slotHintDataReady(FrontendToken* pToken) { - QString sText; + TQString sText; // Get the line text pToken = pToken->getNext()->getNext()->getNext(); @@ -268,7 +268,7 @@ void SymbolDlg::slotHintDataReady(FrontendToken* pToken) return; // Add a list item - (void)new QListViewItem(m_pHintList, m_reHint.capturedTexts().first()); + (void)new TQListViewItem(m_pHintList, m_reHint.capturedTexts().first()); } @@ -278,7 +278,7 @@ void SymbolDlg::slotHintDataReady(FrontendToken* pToken) * This slot is connected to the doubleClicked() signal of the hint list-view. * @param pItem The clicked list item */ -void SymbolDlg::slotHintItemSelected(QListViewItem* pItem) +void SymbolDlg::slotHintItemSelected(TQListViewItem* pItem) { m_pSymbolHC->setCurrentText(pItem->text(0)); } -- cgit v1.2.1