summaryrefslogtreecommitdiffstats
path: root/src/ctagslist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctagslist.cpp')
-rw-r--r--src/ctagslist.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/ctagslist.cpp b/src/ctagslist.cpp
index 687e9fb..0a0ae69 100644
--- a/src/ctagslist.cpp
+++ b/src/ctagslist.cpp
@@ -25,7 +25,7 @@
*
***************************************************************************/
-#include <qheader.h>
+#include <ntqheader.h>
#include <klocale.h>
#include "ctagslist.h"
#include "kscopeconfig.h"
@@ -40,7 +40,7 @@
* correct sorting.
* @author Elad Lahav
*/
-class CtagsListItem : public QListViewItem
+class CtagsListItem : public TQListViewItem
{
public:
/**
@@ -50,8 +50,8 @@ public:
* @param sLine The line in which the tag is defined
* @param sType The type of the tag
*/
- CtagsListItem(QListView* pParent, QString sName, QString sLine,
- QString sType) : QListViewItem(pParent, sName, sLine, sType),
+ CtagsListItem(TQListView* pParent, TQString sName, TQString sLine,
+ TQString sType) : TQListViewItem(pParent, sName, sLine, sType),
m_nPendLine (sLine.toUInt()) {}
/**
@@ -65,7 +65,7 @@ public:
* @return 0 if the items are equal, 1 if the local item is greater, -1
* if the local item is lesser
*/
- virtual int compare(QListViewItem* pItem, int nCol, bool bAscend) const {
+ virtual int compare(TQListViewItem* pItem, int nCol, bool bAscend) const {
if (nCol == 1) {
uint nLineCur, nLineOther;
int nResult;
@@ -85,7 +85,7 @@ public:
}
// Use default comparison for text columns
- return QListViewItem::compare(pItem, nCol, bAscend);
+ return TQListViewItem::compare(pItem, nCol, bAscend);
}
/**
@@ -103,7 +103,7 @@ private:
* @param pParent The parent widget
* @param szName The widget's name
*/
-CtagsList::CtagsList(QWidget* pParent, const char* szName) :
+CtagsList::CtagsList(TQWidget* pParent, const char* szName) :
SearchList(0, pParent, szName),
m_arrLines(16),
m_nItems(0),
@@ -147,7 +147,7 @@ CtagsList::CtagsList(QWidget* pParent, const char* szName) :
m_pList->addColumn(i18n("Name"));
m_pList->addColumn(i18n("Line"));
m_pList->addColumn(i18n("Type"));
- m_pList->setColumnAlignment(1, Qt::AlignRight);
+ m_pList->setColumnAlignment(1, TQt::AlignRight);
// Set colours and font
applyPrefs();
@@ -167,7 +167,7 @@ CtagsList::~CtagsList()
*/
void CtagsList::slotDataReady(FrontendToken* pToken)
{
- QString sName, sType, sLine;
+ TQString sName, sType, sLine;
CtagsListItem* pItem;
KScopePixmaps::PixName pix;
@@ -247,7 +247,7 @@ void CtagsList::slotDataReady(FrontendToken* pToken)
// Resize the line array, if required
if (m_arrLines.size() < m_nItems)
- m_arrLines.resize(m_nItems, QGArray::SpeedOptim);
+ m_arrLines.resize(m_nItems, TQGArray::SpeedOptim);
// Add the new item to the line array
m_arrLines[m_nItems - 1] = pItem;
@@ -258,7 +258,7 @@ void CtagsList::slotDataReady(FrontendToken* pToken)
* changes.
* @param pEvent The event data
*/
-void CtagsList::resizeEvent(QResizeEvent* pEvent)
+void CtagsList::resizeEvent(TQResizeEvent* pEvent)
{
SearchList::resizeEvent(pEvent);
emit resized();
@@ -270,9 +270,9 @@ void CtagsList::resizeEvent(QResizeEvent* pEvent)
* highlighted and the ENTER key is pressed.
* @param pItem The selected list item
*/
-void CtagsList::processItemSelected(QListViewItem* pItem)
+void CtagsList::processItemSelected(TQListViewItem* pItem)
{
- QString sLine;
+ TQString sLine;
sLine = pItem->text(1);
emit lineRequested(sLine.toUInt());
@@ -284,9 +284,9 @@ void CtagsList::processItemSelected(QListViewItem* pItem)
* @param sTip The constructed tip string (on return)
* @return Always true
*/
-bool CtagsList::getTip(QListViewItem* pItem, QString& sTip)
+bool CtagsList::getTip(TQListViewItem* pItem, TQString& sTip)
{
- sTip = QString("Type: <b>%1</b><br>Name: <b>%2</b><br>Line: <b>%3</b>").
+ sTip = TQString("Type: <b>%1</b><br>Name: <b>%2</b><br>Line: <b>%3</b>").
arg(pItem->text(2)).arg(pItem->text(0)).arg(pItem->text(1));
return true;
}
@@ -416,7 +416,7 @@ void CtagsList::slotCtagsFinished(uint nRecords)
*/
void CtagsList::slotSortChanged(int nSection)
{
- Qt::SortOrder order;
+ TQt::SortOrder order;
// Determine whether the new order is ascending or descending
order = m_pList->sortOrder();
@@ -425,19 +425,19 @@ void CtagsList::slotSortChanged(int nSection)
switch (nSection) {
case 0:
// Sort by name
- Config().setCtagSortOrder(order == Qt::Ascending ?
+ Config().setCtagSortOrder(order == TQt::Ascending ?
KScopeConfig::NameAsc : KScopeConfig::NameDes);
break;
case 1:
// Sort by line
- Config().setCtagSortOrder(order == Qt::Ascending ?
+ Config().setCtagSortOrder(order == TQt::Ascending ?
KScopeConfig::LineAsc : KScopeConfig::LineDes);
break;
case 2:
// Sort by type
- Config().setCtagSortOrder(order == Qt::Ascending ?
+ Config().setCtagSortOrder(order == TQt::Ascending ?
KScopeConfig::TypeAsc : KScopeConfig::TypeDes);
break;
}