summaryrefslogtreecommitdiffstats
path: root/src/kde/kchmviewwindow_khtmlpart.cpp
diff options
context:
space:
mode:
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 );
}