summaryrefslogtreecommitdiffstats
path: root/src/modules/help
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:20 -0600
commitc6611272c2bc4a42580848946c8c5d81bb0409c7 (patch)
tree0fd5b58844663dfcd00fb2b79cf67dd0fd429c62 /src/modules/help
parent805c2821ceaddada48b346c6d11bd0dc1351a539 (diff)
downloadkvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.tar.gz
kvirc-c6611272c2bc4a42580848946c8c5d81bb0409c7.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 805c2821ceaddada48b346c6d11bd0dc1351a539.
Diffstat (limited to 'src/modules/help')
-rw-r--r--src/modules/help/helpwidget.cpp14
-rw-r--r--src/modules/help/helpwidget.h4
-rw-r--r--src/modules/help/helpwindow.cpp4
-rw-r--r--src/modules/help/helpwindow.h2
-rwxr-xr-xsrc/modules/help/index.cpp6
5 files changed, 15 insertions, 15 deletions
diff --git a/src/modules/help/helpwidget.cpp b/src/modules/help/helpwidget.cpp
index cd32db5c..67ee30b0 100644
--- a/src/modules/help/helpwidget.cpp
+++ b/src/modules/help/helpwidget.cpp
@@ -36,7 +36,7 @@
#include <tqlineedit.h>
#include <tqtooltip.h>
#include <tqtimer.h>
-#include <clipboard.h>
+#include <tqclipboard.h>
extern Index * g_pDocIndex;
extern KviPointerList<KviHelpWindow> * g_pHelpWindowList;
@@ -108,7 +108,7 @@ void KviHelpWidget::showIndex()
void KviHelpWidget::resizeEvent(TQResizeEvent *e)
{
- int hght = m_pToolBar->sizeHint().height();
+ int hght = m_pToolBar->tqsizeHint().height();
if(hght < 40)hght = 40;
m_pToolBar->setGeometry(0,0,width(),hght);
m_pTextBrowser->setGeometry(0,hght,width(),height() - hght);
@@ -128,17 +128,17 @@ void KviHelpWidget::suicide()
delete this;
}
-TQSize KviHelpWidget::sizeHint() const
+TQSize KviHelpWidget::tqsizeHint() const
{
- int wdth = m_pTextBrowser->sizeHint().width();
- if(m_pToolBar->sizeHint().width() > wdth)wdth = m_pToolBar->sizeHint().width();
- TQSize s(wdth,m_pTextBrowser->sizeHint().height() + m_pToolBar->sizeHint().height());
+ int wdth = m_pTextBrowser->tqsizeHint().width();
+ if(m_pToolBar->tqsizeHint().width() > wdth)wdth = m_pToolBar->tqsizeHint().width();
+ TQSize s(wdth,m_pTextBrowser->tqsizeHint().height() + m_pToolBar->tqsizeHint().height());
return s;
}
bool KviHelpWidget::eventFilter(TQObject * o, TQEvent *e)
{
- TQClipboard *cb = TQApplication::clipboard();
+ TQClipboard *cb = TQApplication::tqclipboard();
if(e->type() == TQEvent::MouseButtonRelease) {
if(m_pTextBrowser->hasSelectedText()) {
diff --git a/src/modules/help/helpwidget.h b/src/modules/help/helpwidget.h
index b8253d65..9e2c1c49 100644
--- a/src/modules/help/helpwidget.h
+++ b/src/modules/help/helpwidget.h
@@ -23,7 +23,7 @@
//
#include "kvi_tal_hbox.h"
-#include <textbrowser.h>
+#include <tqtextbrowser.h>
#include "index.h"
#include <tqprogressbar.h>
@@ -54,7 +54,7 @@ protected slots:
void showIndex();
void suicide();
public:
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
TQTextBrowser * textBrowser() { return m_pTextBrowser; }
};
diff --git a/src/modules/help/helpwindow.cpp b/src/modules/help/helpwindow.cpp
index 1be7f5e8..82003488 100644
--- a/src/modules/help/helpwindow.cpp
+++ b/src/modules/help/helpwindow.cpp
@@ -303,9 +303,9 @@ void KviHelpWindow::resizeEvent(TQResizeEvent *e)
m_pSplitter->setGeometry(0,0,width(),height());
}
-TQSize KviHelpWindow::sizeHint() const
+TQSize KviHelpWindow::tqsizeHint() const
{
- return m_pHelpWidget->sizeHint();
+ return m_pHelpWidget->tqsizeHint();
}
void KviHelpWindow::fillCaptionBuffers()
{
diff --git a/src/modules/help/helpwindow.h b/src/modules/help/helpwindow.h
index 1f243534..300116f8 100644
--- a/src/modules/help/helpwindow.h
+++ b/src/modules/help/helpwindow.h
@@ -62,7 +62,7 @@ protected:
virtual void saveProperties(KviConfig * cfg);
virtual void loadProperties(KviConfig * cfg);
public:
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
TQTextBrowser * textBrowser();
public slots:
void indexSelected ( int );
diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp
index 596b0e44..46dc4f22 100755
--- a/src/modules/help/index.cpp
+++ b/src/modules/help/index.cpp
@@ -5,7 +5,7 @@
#include <tqstringlist.h>
#include "kvi_pointerhashtable.h"
#include <tqapplication.h>
-#include <textstream.h>
+#include <tqtextstream.h>
#include <ctype.h>
@@ -164,7 +164,7 @@ void Index::parseDocument( const TQString &filename, int docNum )
if (text.isNull())
return;
bool valid = TRUE;
- const TQChar *buf = text.unicode();
+ const TQChar *buf = text.tqunicode();
TQChar str[64];
TQChar c = buf[0];
int j = 0;
@@ -727,7 +727,7 @@ bool Index::searchForPattern( const TQStringList &patterns, const TQStringList &
bool valid = TRUE;
- const TQChar *buf = text.unicode();
+ const TQChar *buf = text.tqunicode();
TQChar str[64];