From bab40890696ec68c337dc290880423a0602b83c7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 16 Jan 2011 02:40:35 +0000 Subject: Finished remaining porting to new TQt API git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/khtml_ext.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'khtml/khtml_ext.cpp') diff --git a/khtml/khtml_ext.cpp b/khtml/khtml_ext.cpp index 4f2ceca79..9997a1aba 100644 --- a/khtml/khtml_ext.cpp +++ b/khtml/khtml_ext.cpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include @@ -223,7 +223,7 @@ void KHTMLPartBrowserExtension::copy() text.replace( TQChar( 0xa0 ), ' ' ); - QClipboard *cb = TQApplication::clipboard(); + TQClipboard *cb = TQApplication::tqclipboard(); disconnect( cb, TQT_SIGNAL( selectionChanged() ), m_part, TQT_SLOT( slotClearSelection() ) ); #ifndef QT_NO_MIMECLIPBOARD TQString htmltext; @@ -264,7 +264,7 @@ void KHTMLPartBrowserExtension::copy() void KHTMLPartBrowserExtension::searchProvider() { // action name is of form "previewProvider[:]" - const TQString searchProviderPrefix = TQString( sender()->name() ).mid( 14 ); + const TQString searchProviderPrefix = TQString( TQT_TQOBJECT_CONST(sender())->name() ).mid( 14 ); KURIFilterData data; TQStringList list; @@ -315,11 +315,11 @@ void KHTMLPartBrowserExtension::callExtensionProxyMethod( const char *method ) if ( !m_extensionProxy ) return; - int slot = m_extensionProxy->tqmetaObject()->findSlot( method ); + int slot = m_extensionProxy->tqmetaObject()->tqfindSlot( method ); if ( slot == -1 ) return; - QUObject o[ 1 ]; + TQUObject o[ 1 ]; m_extensionProxy->qt_invoke( slot, o ); } @@ -335,7 +335,7 @@ void KHTMLPartBrowserExtension::updateEditActions() // ### duplicated from KonqMainWindow::slotClipboardDataChanged #ifndef QT_NO_MIMECLIPBOARD // Handle minimalized versions of Qt Embedded - TQMimeSource *data = TQApplication::clipboard()->data(); + TQMimeSource *data = TQApplication::tqclipboard()->data(); enableAction( "paste", data->provides( "text/plain" ) ); #else TQString data=TQApplication::clipboard()->text(); @@ -715,10 +715,10 @@ void KHTMLPopupGUIClient::slotCopyLinkLocation() // Set it in both the mouse selection and in the clipboard KURL::List lst; lst.append( safeURL ); - TQApplication::clipboard()->setData( new KURLDrag( lst ), QClipboard::Clipboard ); - TQApplication::clipboard()->setData( new KURLDrag( lst ), QClipboard::Selection ); + TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Clipboard ); + TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Selection ); #else - TQApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries + TQApplication::tqclipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries #endif } @@ -741,8 +741,8 @@ void KHTMLPopupGUIClient::slotCopyImage() drag->addDragObject( new KURLDrag(lst, d->m_khtml->view(), "Image URL") ); // Set it in both the mouse selection and in the clipboard - TQApplication::clipboard()->setData( drag, QClipboard::Clipboard ); - TQApplication::clipboard()->setData( new KURLDrag(lst), QClipboard::Selection ); + TQApplication::tqclipboard()->setData( drag, TQClipboard::Clipboard ); + TQApplication::tqclipboard()->setData( new KURLDrag(lst), TQClipboard::Selection ); #else kdDebug() << "slotCopyImage called when the clipboard does not support this. This should not be possible." << endl; #endif @@ -756,8 +756,8 @@ void KHTMLPopupGUIClient::slotCopyImageLocation() // Set it in both the mouse selection and in the clipboard KURL::List lst; lst.append( safeURL ); - TQApplication::clipboard()->setData( new KURLDrag( lst ), QClipboard::Clipboard ); - TQApplication::clipboard()->setData( new KURLDrag( lst ), QClipboard::Selection ); + TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Clipboard ); + TQApplication::tqclipboard()->setData( new KURLDrag( lst ), TQClipboard::Selection ); #else TQApplication::clipboard()->setText( safeURL.url() ); //FIXME(E): Handle multiple entries #endif -- cgit v1.2.1