summaryrefslogtreecommitdiffstats
path: root/src/querywidget.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-10-08 00:13:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-10-08 05:14:53 +0200
commit84f5a315c3429b47a7eff15e626e2efdbe4f6e5e (patch)
tree770861aa9033e1dc6c5168358194ff85b32dd429 /src/querywidget.h
parent57d8bb3d12aed373eee08915f0ff19f5233aabe3 (diff)
downloadkscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.tar.gz
kscope-84f5a315c3429b47a7eff15e626e2efdbe4f6e5e.zip
Initial TQt conversion
Diffstat (limited to 'src/querywidget.h')
-rw-r--r--src/querywidget.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/querywidget.h b/src/querywidget.h
index a798ec0..d309bb0 100644
--- a/src/querywidget.h
+++ b/src/querywidget.h
@@ -28,8 +28,8 @@
#ifndef QUERYWIDGET_H
#define QUERYWIDGET_H
-#include <qlistview.h>
-#include <qpopupmenu.h>
+#include <ntqlistview.h>
+#include <ntqpopupmenu.h>
#include <kaction.h>
#include "querywidgetlayout.h"
#include "tabwidget.h"
@@ -47,17 +47,17 @@ class QueryWidget : public QueryWidgetLayout
Q_OBJECT
public:
- QueryWidget(QWidget* pParent = 0, const char* szName = 0);
+ QueryWidget(TQWidget* pParent = 0, const char* szName = 0);
~QueryWidget();
void addQueryPage();
- void initQuery(uint, const QString&, bool);
+ void initQuery(uint, const TQString&, bool);
void applyPrefs();
- void loadPages(const QString&, const QStringList&);
- void savePages(const QString&, QStringList&);
- void addHistoryRecord(const QString&, uint, const QString&);
+ void loadPages(const TQString&, const TQStringList&);
+ void savePages(const TQString&, TQStringList&);
+ void addHistoryRecord(const TQString&, uint, const TQString&);
void selectActiveHistory();
- void setPageMenu(QPopupMenu*, KToggleAction*);
+ void setPageMenu(TQPopupMenu*, KToggleAction*);
void getBookmarks(FileLocationList&);
/**
@@ -86,7 +86,7 @@ signals:
* @param sPath The full path of the requested source file
* @param nLine The requested line number
*/
- void lineRequested(const QString& sPath, uint nLine);
+ void lineRequested(const TQString& sPath, uint nLine);
/**
* Emitted when new query page is requested by user
@@ -96,7 +96,7 @@ signals:
private:
/** A popup menu with query page commands (new query, lock/unlock, close
query, etc.). */
- QPopupMenu* m_pPageMenu;
+ TQPopupMenu* m_pPageMenu;
/** A toggle-like action for changing the locked state of a query. */
KToggleAction* m_pLockAction;
@@ -123,7 +123,7 @@ private:
/**
* @param pWidget A query page to set as the current one
*/
- inline void setCurrentPage(QWidget* pWidget) {
+ inline void setCurrentPage(TQWidget* pWidget) {
if (pWidget)
m_pQueryTabs->setCurrentPage(m_pQueryTabs->indexOf(pWidget));
}
@@ -133,7 +133,7 @@ private:
* @param pPage The page to check
* @return true if the given page is a history page
*/
- inline bool isHistoryPage(QWidget* pPage) {
+ inline bool isHistoryPage(TQWidget* pPage) {
return (dynamic_cast<HistoryPage*>(pPage) != NULL);
}
@@ -142,11 +142,11 @@ private:
void findHistoryPage();
private slots:
- void slotRequestLine(const QString&, uint);
- void slotCurrentChanged(QWidget*);
- void slotClosePage(QWidget*);
- void slotContextMenu(const QPoint&);
- void slotContextMenu(QWidget*, const QPoint&);
+ void slotRequestLine(const TQString&, uint);
+ void slotCurrentChanged(TQWidget*);
+ void slotClosePage(TQWidget*);
+ void slotContextMenu(const TQPoint&);
+ void slotContextMenu(TQWidget*, const TQPoint&);
};
#endif