diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-29 19:00:37 +0000 |
commit | 25794f504692e5a36c490438814e9dfda8aaa2dd (patch) | |
tree | 8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmviewwindow_qtextbrowser.h | |
parent | 35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff) | |
download | kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip |
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmviewwindow_qtextbrowser.h')
-rw-r--r-- | src/kchmviewwindow_qtextbrowser.h | 35 |
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 */ |