summaryrefslogtreecommitdiffstats
path: root/src/kde/kchmviewwindow_khtmlpart.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
commit25794f504692e5a36c490438814e9dfda8aaa2dd (patch)
tree8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kde/kchmviewwindow_khtmlpart.cpp
parent35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff)
downloadkchmviewer-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/kde/kchmviewwindow_khtmlpart.cpp')
-rw-r--r--src/kde/kchmviewwindow_khtmlpart.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kde/kchmviewwindow_khtmlpart.cpp b/src/kde/kchmviewwindow_khtmlpart.cpp
index e68e53d..e3c8f42 100644
--- a/src/kde/kchmviewwindow_khtmlpart.cpp
+++ b/src/kde/kchmviewwindow_khtmlpart.cpp
@@ -19,7 +19,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qclipboard.h>
+#include <tqclipboard.h>
#include <khtmlview.h>
#include <kfinddialog.h>
@@ -32,25 +32,25 @@
#include "kchmviewwindow_khtmlpart.moc"
-QWidget * KCHMViewWindow_KHTMLPart::getQWidget()
+TQWidget * KCHMViewWindow_KHTMLPart::getTQWidget()
{
return view();
}
-KCHMViewWindow_KHTMLPart::KCHMViewWindow_KHTMLPart( QTabWidget * parent )
- : KHTMLPart ( parent ), KCHMViewWindow ( parent )
+KCHMViewWindow_KHTMLPart::KCHMViewWindow_KHTMLPart( TQTabWidget * tqparent )
+ : KHTMLPart ( tqparent ), KCHMViewWindow ( tqparent )
{
m_zoomfactor = 0;
m_currentEncoding = 0;
m_searchForward = true;
- invalidate();
+ tqinvalidate();
- connect( browserExtension(), SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
- this, SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) );
+ connect( browserExtension(), TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
+ this, TQT_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) );
- connect( this, SIGNAL ( popupMenu ( const QString &, const QPoint &) ),
- this, SLOT ( onPopupMenu ( const QString &, const QPoint &) ) );
+ connect( this, TQT_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ),
+ this, TQT_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) );
}
@@ -58,7 +58,7 @@ KCHMViewWindow_KHTMLPart::~KCHMViewWindow_KHTMLPart()
{
}
-bool KCHMViewWindow_KHTMLPart::openPage (const QString& url)
+bool KCHMViewWindow_KHTMLPart::openPage (const TQString& url)
{
// Set or change the encoding
if ( m_currentEncoding != ::mainWindow->chmFile()->currentEncoding() )
@@ -67,7 +67,7 @@ bool KCHMViewWindow_KHTMLPart::openPage (const QString& url)
setEncoding ( m_currentEncoding->qtcodec, TRUE );
}
- QString fullurl = "ms-its:" + ::mainWindow->getOpenedFileName() + "::" + url;
+ TQString fullurl = "ms-its:" + ::mainWindow->getOpenedFileName() + "::" + url;
openURL ( KURL(fullurl) );
return true;
@@ -81,18 +81,18 @@ void KCHMViewWindow_KHTMLPart::setZoomFactor( int zoom )
KHTMLPart::setZoomFactor ( 100 + (m_zoomfactor * 10) );
}
-void KCHMViewWindow_KHTMLPart::invalidate( )
+void KCHMViewWindow_KHTMLPart::tqinvalidate( )
{
m_zoomfactor = 0;
m_searchForward = true;
- m_searchText = QString::null;
+ m_searchText = TQString();
setJScriptEnabled ( appConfig.m_kdeEnableJS );
setJavaEnabled ( appConfig.m_kdeEnableJava );
setMetaRefreshEnabled ( appConfig.m_kdeEnableRefresh );
setPluginsEnabled ( appConfig.m_kdeEnablePlugins );
- KCHMViewWindow::invalidate( );
+ KCHMViewWindow::tqinvalidate( );
}
int KCHMViewWindow_KHTMLPart::getScrollbarPosition( )
@@ -116,7 +116,7 @@ bool KCHMViewWindow_KHTMLPart::printCurrentPage()
return true;
}
-void KCHMViewWindow_KHTMLPart::searchWord( const QString & word, bool forward, bool )
+void KCHMViewWindow_KHTMLPart::searchWord( const TQString & word, bool forward, bool )
{
if ( word != m_searchText || forward != m_searchForward )
{
@@ -135,7 +135,7 @@ void KCHMViewWindow_KHTMLPart::onOpenURLRequest( const KURL & url, const KParts:
emit signalLinkClicked ( url.prettyURL(), sourcechange );
}
-void KCHMViewWindow_KHTMLPart::slotLinkClicked( const QString & newlink )
+void KCHMViewWindow_KHTMLPart::slotLinkClicked( const TQString & newlink )
{
bool notused;
emit signalLinkClicked (newlink, notused);
@@ -149,15 +149,15 @@ void KCHMViewWindow_KHTMLPart::clipSelectAll()
void KCHMViewWindow_KHTMLPart::clipCopy()
{
- QString text = selectedText();
+ TQString text = selectedText();
if ( !text.isEmpty() )
- QApplication::clipboard()->setText( text );
+ TQApplication::tqclipboard()->setText( text );
}
-void KCHMViewWindow_KHTMLPart::onPopupMenu ( const QString &url, const QPoint & point )
+void KCHMViewWindow_KHTMLPart::onPopupMenu ( const TQString &url, const TQPoint & point )
{
- KQPopupMenu * menu = getContextMenu( url, view() );
+ KTQPopupMenu * menu = getContextMenu( url, view() );
menu->exec( point );
}