summaryrefslogtreecommitdiffstats
path: root/src/kchmviewwindow_qtextbrowser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kchmviewwindow_qtextbrowser.h')
-rw-r--r--src/kchmviewwindow_qtextbrowser.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/kchmviewwindow_qtextbrowser.h b/src/kchmviewwindow_qtextbrowser.h
index 662bd57..2a87716 100644
--- a/src/kchmviewwindow_qtextbrowser.h
+++ b/src/kchmviewwindow_qtextbrowser.h
@@ -19,8 +19,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef KCHMVIEWWINDOW_QTEXTBROWSER_H
-#define KCHMVIEWWINDOW_QTEXTBROWSER_H
+#ifndef KCHMVIEWWINDOW_TQTEXTBROWSER_H
+#define KCHMVIEWWINDOW_TQTEXTBROWSER_H
#include "kde-qt.h"
@@ -30,18 +30,19 @@
/**
@author Georgy Yunaev
*/
-class KCHMViewWindow_QTextBrowser : public QTextBrowser, public KCHMViewWindow
+class KCHMViewWindow_QTextBrowser : public TQTextBrowser, public KCHMViewWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
- KCHMViewWindow_QTextBrowser( QTabWidget * parent );
+ KCHMViewWindow_QTextBrowser( TQTabWidget * tqparent );
~KCHMViewWindow_QTextBrowser();
//! Open a page from current chm archive
- virtual bool openPage (const QString& url);
+ virtual bool openPage (const TQString& url);
//! Invalidate current view, doing all the cleanups etc.
- virtual void invalidate();
+ virtual void tqinvalidate();
//! Return current ZoomFactor.
virtual int getZoomFactor() const { return m_zoomfactor; }
@@ -55,8 +56,8 @@ public:
//! Popups the print dialog, and prints the current page on the printer.
virtual bool printCurrentPage();
- //! Initiates the find-in-page search, if succeed, cursor moved to the first entry
- virtual void searchWord( const QString & word, bool forward = true, bool casesensitive = false );
+ //! Initiates the tqfind-in-page search, if succeed, cursor moved to the first entry
+ virtual void searchWord( const TQString & word, bool forward = true, bool casesensitive = false );
//! Select the content of the whole page
virtual void clipSelectAll();
@@ -74,10 +75,10 @@ public:
//! Sets the scrollbar position.
virtual void setScrollbarPosition(int pos);
- virtual QObject * getQObject() { return this; }
- virtual QWidget * getQWidget() { return this; }
+ virtual TQObject * getTQObject() { return TQT_TQOBJECT(this); }
+ virtual TQWidget * getTQWidget() { return TQT_TQWIDGET(this); }
- static QString decodeUrl( const QString &url );
+ static TQString decodeUrl( const TQString &url );
signals:
/*!
@@ -85,23 +86,23 @@ signals:
* If signalLinkClicked() sets follow_link to false, the current page should NOT change.
* Otherwise it should be changed to the new link value.
*/
- void signalLinkClicked ( const QString & newlink, bool& follow_link );
+ void signalLinkClicked ( const TQString & newlink, bool& follow_link );
private slots:
- virtual void slotLinkClicked (const QString & newlink);
+ virtual void slotLinkClicked (const TQString & newlink);
private:
- QPopupMenu * createPopupMenu ( const QPoint & pos );
- void setSource ( const QString & name );
+ TQPopupMenu * createPopupMenu ( const TQPoint & pos );
+ void setSource ( const TQString & name );
int m_zoomfactor;
bool m_allowSourceChange;
int m_searchLastIndex;
int m_searchLastParagraph;
- QString m_searchText;
+ TQString m_searchText;
KCHMSourceFactory * m_sourcefactory;
};
-#endif /* KCHMVIEWWINDOW_QTEXTBROWSER_H */
+#endif /* KCHMVIEWWINDOW_TQTEXTBROWSER_H */