diff options
Diffstat (limited to 'src/treewidget.cpp')
-rw-r--r-- | src/treewidget.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/treewidget.cpp b/src/treewidget.cpp index b303194..db0a26b 100644 --- a/src/treewidget.cpp +++ b/src/treewidget.cpp @@ -33,7 +33,7 @@ * @param pParent Parent widget * @param szName The name of the widget */ -TreeWidget::TreeWidget(QWidget* pParent, const char* szName) : +TreeWidget::TreeWidget(TQWidget* pParent, const char* szName) : QueryView(pParent, szName), m_nQueryType(CscopeFrontend::Called) { @@ -43,8 +43,8 @@ TreeWidget::TreeWidget(QWidget* pParent, const char* szName) : m_pDriver = new QueryViewDriver(this, this); // Query a tree item when it is expanded for the first time - connect(this, SIGNAL(expanded(QListViewItem*)), this, - SLOT(slotQueryItem(QListViewItem*))); + connect(this, SIGNAL(expanded(TQListViewItem*)), this, + SLOT(slotQueryItem(TQListViewItem*))); } /** @@ -68,16 +68,16 @@ void TreeWidget::setMode(Mode mode) * Sets a new root item for the tree. * @param sFunc The name of the function to serve as root */ -void TreeWidget::setRoot(const QString& sFunc) +void TreeWidget::setRoot(const TQString& sFunc) { - QListViewItem* pRoot; + TQListViewItem* pRoot; // Remove the current root, if any if ((pRoot = firstChild()) != NULL) delete pRoot; // Create a new root item - pRoot = new QListViewItem(this, sFunc); + pRoot = new TQListViewItem(this, sFunc); pRoot->setExpandable(true); } @@ -86,7 +86,7 @@ void TreeWidget::setRoot(const QString& sFunc) */ void TreeWidget::queryRoot() { - QListViewItem* pRoot; + TQListViewItem* pRoot; if ((pRoot = firstChild()) != NULL) slotQueryItem(pRoot); @@ -98,8 +98,8 @@ void TreeWidget::queryRoot() */ void TreeWidget::save(FILE* pFile) { - QTextStream str(pFile, IO_WriteOnly); - QListViewItem* pRoot; + TQTextStream str(pFile, IO_WriteOnly); + TQListViewItem* pRoot; Encoder enc; if (m_nQueryType == CscopeFrontend::Called) @@ -124,7 +124,7 @@ void TreeWidget::save(FILE* pFile) * @param str An initialised text stream to use for writing * @param enc An encoder for free-text strings */ -void TreeWidget::saveItems(QListViewItem* pItem, QTextStream& str, Encoder& enc) +void TreeWidget::saveItems(TQListViewItem* pItem, TQTextStream& str, Encoder& enc) { // Iterate over all items in this level for (; pItem != NULL; pItem = pItem->nextSibling()) { @@ -150,10 +150,10 @@ void TreeWidget::saveItems(QListViewItem* pItem, QTextStream& str, Encoder& enc) * @param sText The line's text * @param pParent The parent for the new item */ -void TreeWidget::addRecord(const QString& sFunc, const QString& sFile, - const QString& sLine, const QString& sText, QListViewItem* pParent) +void TreeWidget::addRecord(const TQString& sFunc, const TQString& sFile, + const TQString& sLine, const TQString& sText, TQListViewItem* pParent) { - QListViewItem* pItem; + TQListViewItem* pItem; pItem = new QueryViewItem(pParent, m_pLastItem, 2); pItem->setText(0, sFunc); @@ -173,7 +173,7 @@ void TreeWidget::addRecord(const QString& sFunc, const QString& sFile, * @param nResults Number of results * @param pParent The item for which the query was executed */ -void TreeWidget::queryFinished(uint nResults, QListViewItem* pParent) +void TreeWidget::queryFinished(uint nResults, TQListViewItem* pParent) { if (nResults == 0) pParent->setExpandable(false); @@ -186,7 +186,7 @@ void TreeWidget::queryFinished(uint nResults, QListViewItem* pParent) * This slot is connected to the expanded() signal of the list view. * @param pItem The item to query */ -void TreeWidget::slotQueryItem(QListViewItem* pItem) +void TreeWidget::slotQueryItem(TQListViewItem* pItem) { // Do nothing if the item was already queried // An item has been queried if it has children or marked as non-expandable @@ -207,10 +207,10 @@ void TreeWidget::slotQueryItem(QListViewItem* pItem) * @param re The pattern to search * @param nCol The list column to search in */ -void TreeWidget::slotSearch(QListViewItem* pParent, const QRegExp& re, +void TreeWidget::slotSearch(TQListViewItem* pParent, const TQRegExp& re, int nCol) { - QListViewItem* pItem; + TQListViewItem* pItem; // Get the first child if (pParent != NULL) @@ -236,9 +236,9 @@ void TreeWidget::slotSearch(QListViewItem* pParent, const QRegExp& re, * This slot is connected to the showAll() signal of the QueryResultsMenu * object. */ -void TreeWidget::slotShowAll(QListViewItem* pParent) +void TreeWidget::slotShowAll(TQListViewItem* pParent) { - QListViewItem* pItem; + TQListViewItem* pItem; // Get the first child if (pParent != NULL) |