summaryrefslogtreecommitdiffstats
path: root/src/queryview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/queryview.h')
-rw-r--r--src/queryview.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/queryview.h b/src/queryview.h
index c896d6b..abdcc82 100644
--- a/src/queryview.h
+++ b/src/queryview.h
@@ -28,8 +28,8 @@
#ifndef QUERYVIEW_H
#define QUERYVIEW_H
-#include <qlistview.h>
-#include <qregexp.h>
+#include <ntqlistview.h>
+#include <ntqregexp.h>
class QueryResultsMenu;
@@ -39,7 +39,7 @@ class QueryResultsMenu;
* results numerically by line number.
* @author Elad Lahav
*/
-class QueryViewItem : public QListViewItem
+class QueryViewItem : public TQListViewItem
{
public:
/**
@@ -49,8 +49,8 @@ public:
* @param pAfter The item to preceed the new one
* @param nLineCol The index of the line column
*/
- QueryViewItem(QListView* pView, QListViewItem* pAfter,
- int nLineCol) : QListViewItem(pView, pAfter), m_nLineCol(nLineCol)
+ QueryViewItem(TQListView* pView, TQListViewItem* pAfter,
+ int nLineCol) : TQListViewItem(pView, pAfter), m_nLineCol(nLineCol)
{}
/**
@@ -60,8 +60,8 @@ public:
* @param pAfter The item to preceed the new one
* @param nLineCol The index of the line column
*/
- QueryViewItem(QListViewItem* pParent, QListViewItem* pAfter,
- int nLineCol) : QListViewItem(pParent, pAfter), m_nLineCol(nLineCol)
+ QueryViewItem(TQListViewItem* pParent, TQListViewItem* pAfter,
+ int nLineCol) : TQListViewItem(pParent, pAfter), m_nLineCol(nLineCol)
{}
/**
@@ -75,7 +75,7 @@ public:
* @return 0 if the items are equal, 1 if the current item is greater,
* -1 if the current item is smaller
*/
- virtual int compare(QListViewItem* pItem, int nCol, bool bAscend) const {
+ virtual int compare(TQListViewItem* pItem, int nCol, bool bAscend) const {
if (nCol == m_nLineCol) {
uint nLineCur, nLineOther;
int nResult;
@@ -94,7 +94,7 @@ public:
return -1; // The second item is greater
}
- return QListViewItem::compare(pItem, nCol, bAscend);
+ return TQListViewItem::compare(pItem, nCol, bAscend);
}
private:
@@ -115,21 +115,21 @@ private:
* from records, filter records, and more.
* @author Elad Lahav
*/
-class QueryView : public QListView
+class QueryView : public TQListView
{
Q_OBJECT
public:
- QueryView(QWidget* pParent = 0, const char* szName = 0);
+ QueryView(TQWidget* pParent = 0, const char* szName = 0);
~QueryView();
- virtual void addRecord(const QString&, const QString&, const QString&,
- const QString&, QListViewItem* pParent = NULL);
- virtual void select(QListViewItem*);
+ virtual void addRecord(const TQString&, const TQString&, const TQString&,
+ const TQString&, TQListViewItem* pParent = NULL);
+ virtual void select(TQListViewItem*);
virtual void selectNext();
virtual void selectPrev();
virtual void queryProgress();
- virtual void queryFinished(uint, QListViewItem* pParent = NULL);
+ virtual void queryFinished(uint, TQListViewItem* pParent = NULL);
/**
* Provides an iterator over the list of query results.
@@ -157,21 +157,21 @@ public:
void next();
- QString getFunc();
- QString getFile();
- QString getLine();
- QString getText();
+ TQString getFunc();
+ TQString getFile();
+ TQString getLine();
+ TQString getText();
private:
/** Points to the current list item. */
- QListViewItem* m_pItem;
+ TQListViewItem* m_pItem;
/**
* Private constructor used to return initialised iterators.
* This constructor can only be called from within QueryView.
* @param pItem The initial list item
*/
- Iterator(QListViewItem* pItem) : m_pItem(pItem) {}
+ Iterator(TQListViewItem* pItem) : m_pItem(pItem) {}
friend class QueryView;
};
@@ -194,24 +194,24 @@ signals:
* @param sFile The "File" field of the selected record
* @param nLine The "Line" field of the selected record
*/
- void lineRequested(const QString& sFile, uint nLine);
+ void lineRequested(const TQString& sFile, uint nLine);
protected:
/** A popup-menu for manipulating query result items. */
QueryResultsMenu* m_pQueryMenu;
/** A pointer to the last item (used for appending results). */
- QListViewItem* m_pLastItem;
+ TQListViewItem* m_pLastItem;
- void contentsMouseDoubleClickEvent(QMouseEvent*);
+ void contentsMouseDoubleClickEvent(TQMouseEvent*);
protected slots:
- virtual void slotRecordSelected(QListViewItem*);
- virtual void slotFindDef(const QString&);
- virtual void slotCopy(QListViewItem*, int);
+ virtual void slotRecordSelected(TQListViewItem*);
+ virtual void slotFindDef(const TQString&);
+ virtual void slotCopy(TQListViewItem*, int);
virtual void slotFilter(int);
virtual void slotShowAll();
- virtual void slotRemoveItem(QListViewItem*);
+ virtual void slotRemoveItem(TQListViewItem*);
};
#endif