summaryrefslogtreecommitdiffstats
path: root/src/querywidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/querywidget.cpp')
-rw-r--r--src/querywidget.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/querywidget.cpp b/src/querywidget.cpp
index 113f216..2246c8e 100644
--- a/src/querywidget.cpp
+++ b/src/querywidget.cpp
@@ -25,8 +25,8 @@
*
***************************************************************************/
-#include <qtoolbutton.h>
-#include <qtooltip.h>
+#include <ntqtoolbutton.h>
+#include <ntqtooltip.h>
#include <klocale.h>
#include <kmessagebox.h>
#include "querywidget.h"
@@ -38,7 +38,7 @@
* @param pParent The parent widget
* @param szName The widget's name
*/
-QueryWidget::QueryWidget(QWidget* pParent, const char* szName) :
+QueryWidget::QueryWidget(TQWidget* pParent, const char* szName) :
QueryWidgetLayout(pParent, szName),
m_pPageMenu(NULL),
m_pLockAction(NULL),
@@ -50,18 +50,18 @@ QueryWidget::QueryWidget(QWidget* pParent, const char* szName) :
m_pQueryTabs->setHoverCloseButton(true);
// Change the lock action state according to the current page
- connect(m_pQueryTabs, SIGNAL(currentChanged(QWidget*)), this,
- SLOT(slotCurrentChanged(QWidget*)));
+ connect(m_pQueryTabs, SIGNAL(currentChanged(TQWidget*)), this,
+ SLOT(slotCurrentChanged(TQWidget*)));
// Close a query when its tab button is clicked
- connect(m_pQueryTabs, SIGNAL(closeRequest(QWidget*)), this,
- SLOT(slotClosePage(QWidget*)));
+ connect(m_pQueryTabs, SIGNAL(closeRequest(TQWidget*)), this,
+ SLOT(slotClosePage(TQWidget*)));
// Show the menu when requested
- connect(m_pQueryTabs, SIGNAL(contextMenu(const QPoint&)), this,
- SLOT(slotContextMenu(const QPoint&)));
- connect(m_pQueryTabs, SIGNAL(contextMenu(QWidget*, const QPoint&)), this,
- SLOT(slotContextMenu(QWidget*, const QPoint&)));
+ connect(m_pQueryTabs, SIGNAL(contextMenu(const TQPoint&)), this,
+ SLOT(slotContextMenu(const TQPoint&)));
+ connect(m_pQueryTabs, SIGNAL(contextMenu(TQWidget*, const TQPoint&)), this,
+ SLOT(slotContextMenu(TQWidget*, const TQPoint&)));
}
/**
@@ -79,7 +79,7 @@ QueryWidget::~QueryWidget()
* @param sText The query's text, as entered by the user
* @param bCase true for case-sensitive queries, false otherwise
*/
-void QueryWidget::initQuery(uint nType, const QString& sText, bool bCase)
+void QueryWidget::initQuery(uint nType, const TQString& sText, bool bCase)
{
QueryPage* pPage;
@@ -123,12 +123,12 @@ void QueryWidget::applyPrefs()
* @param sProjPath The full path of the project directory
* @param slFiles The list of query file names to load
*/
-void QueryWidget::loadPages(const QString& sProjPath,
- const QStringList& slFiles)
+void QueryWidget::loadPages(const TQString& sProjPath,
+ const TQStringList& slFiles)
{
- QStringList::ConstIterator itr;
+ TQStringList::ConstIterator itr;
QueryPageBase* pPage;
- QString sName;
+ TQString sName;
// Iterate through query files
for (itr = slFiles.begin(); itr != slFiles.end(); ++itr) {
@@ -155,11 +155,11 @@ void QueryWidget::loadPages(const QString& sProjPath,
* @param sProjPath The full path of the project directory
* @param slFiles Holds a list of query file names, upon return
*/
-void QueryWidget::savePages(const QString& sProjPath, QStringList& slFiles)
+void QueryWidget::savePages(const TQString& sProjPath, TQStringList& slFiles)
{
int nPageCount, i;
QueryPage* pPage;
- QString sFileName;
+ TQString sFileName;
// Iterate pages
nPageCount = m_pQueryTabs->count();
@@ -180,8 +180,8 @@ void QueryWidget::savePages(const QString& sProjPath, QStringList& slFiles)
* @param sText The contents of the line pointed to by the file path and
* line number
*/
-void QueryWidget::addHistoryRecord(const QString& sFile, uint nLine,
- const QString& sText)
+void QueryWidget::addHistoryRecord(const TQString& sFile, uint nLine,
+ const TQString& sText)
{
// Validate file name and line number
if (sFile.isEmpty() || nLine == 0)
@@ -216,7 +216,7 @@ void QueryWidget::setPageCaption(QueryPageBase* pPage)
void QueryWidget::addQueryPage()
{
QueryPage* pPage;
- QString sTitle;
+ TQString sTitle;
// Create the page
pPage = new QueryPage(this);
@@ -228,8 +228,8 @@ void QueryWidget::addQueryPage()
// Emit the lineRequested() signal when a query record is selected on
// this page
- connect(pPage, SIGNAL(lineRequested(const QString&, uint)), this,
- SLOT(slotRequestLine(const QString&, uint)));
+ connect(pPage, SIGNAL(lineRequested(const TQString&, uint)), this,
+ SLOT(slotRequestLine(const TQString&, uint)));
}
/**
@@ -316,7 +316,7 @@ void QueryWidget::slotPrevResult()
*/
void QueryWidget::slotCloseCurrent()
{
- QWidget* pPage;
+ TQWidget* pPage;
// Close the current page
pPage = currentPage();
@@ -385,7 +385,7 @@ void QueryWidget::selectActiveHistory()
* @param pMenu Pointer to the popup menu
* @param pAction Pointer to the "Lock/Unlock" toggle action
*/
-void QueryWidget::setPageMenu(QPopupMenu* pMenu, KToggleAction* pAction)
+void QueryWidget::setPageMenu(TQPopupMenu* pMenu, KToggleAction* pAction)
{
m_pPageMenu = pMenu;
m_pLockAction = pAction;
@@ -400,7 +400,7 @@ void QueryWidget::setPageMenu(QPopupMenu* pMenu, KToggleAction* pAction)
* @param sFileName The file's path
* @param nLine The requested line in the file
*/
-void QueryWidget::slotRequestLine(const QString& sFileName, uint nLine)
+void QueryWidget::slotRequestLine(const TQString& sFileName, uint nLine)
{
// Disable history if the request came from the active history page
if (currentPage() == m_pHistPage)
@@ -418,7 +418,7 @@ void QueryWidget::slotRequestLine(const QString& sFileName, uint nLine)
* Update the lock button when the current query page changes.
* @param pWidget The new current page
*/
-void QueryWidget::slotCurrentChanged(QWidget* pWidget)
+void QueryWidget::slotCurrentChanged(TQWidget* pWidget)
{
QueryPage* pPage;
@@ -431,7 +431,7 @@ void QueryWidget::slotCurrentChanged(QWidget* pWidget)
* This slot is connected to the closeRequest() signal of the KTabBar object.
* @param pPage The page to close
*/
-void QueryWidget::slotClosePage(QWidget* pPage)
+void QueryWidget::slotClosePage(TQWidget* pPage)
{
// Prompt the user before closing a locked query
if (((QueryPage*)pPage)->isLocked()) {
@@ -461,7 +461,7 @@ void QueryWidget::slotClosePage(QWidget* pPage)
* @param pt The point over which the mouse was clicked in request for the
* context menu
*/
-void QueryWidget::slotContextMenu(const QPoint& pt)
+void QueryWidget::slotContextMenu(const TQPoint& pt)
{
uint i;
@@ -481,7 +481,7 @@ void QueryWidget::slotContextMenu(const QPoint& pt)
* @param pt The point over which the mouse was clicked in request for
* the context menu
*/
-void QueryWidget::slotContextMenu(QWidget* pWidget, const QPoint& pt)
+void QueryWidget::slotContextMenu(TQWidget* pWidget, const TQPoint& pt)
{
uint i;
@@ -569,7 +569,7 @@ void QueryWidget::findHistoryPage()
{
HistoryPage* pPage;
int nPages, i;
- QString sTitle;
+ TQString sTitle;
// First check if the active history page is unlocked
if (m_pHistPage != NULL && !m_pHistPage->isLocked())
@@ -594,8 +594,8 @@ void QueryWidget::findHistoryPage()
// Emit the lineRequested() signal when a query record is selected on
// this page
- connect(m_pHistPage, SIGNAL(lineRequested(const QString&, uint)), this,
- SLOT(slotRequestLine(const QString&, uint)));
+ connect(m_pHistPage, SIGNAL(lineRequested(const TQString&, uint)), this,
+ SLOT(slotRequestLine(const TQString&, uint)));
}
#include "querywidget.moc"