diff options
Diffstat (limited to 'src/symboldlg.cpp')
-rw-r--r-- | src/symboldlg.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
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 <qlabel.h> -#include <qlistview.h> -#include <qpushbutton.h> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qgroupbox.h> +#include <ntqlabel.h> +#include <ntqlistview.h> +#include <ntqpushbutton.h> +#include <ntqradiobutton.h> +#include <ntqcheckbox.h> +#include <ntqgroupbox.h> #include <kcombobox.h> #include <klocale.h> #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)); } |