From 84f5a315c3429b47a7eff15e626e2efdbe4f6e5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Oct 2013 00:13:25 +0200 Subject: Initial TQt conversion --- src/querywidget.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/querywidget.h') 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 -#include +#include +#include #include #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(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 -- cgit v1.2.3