From bfb063893534c33acd9abd340c80979205dc82f9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 2 Oct 2010 02:23:08 +0000 Subject: [CRITICAL] Repair borken rendering due to incorrect inherited object logic git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1181768 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/khtml_ext.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'khtml/khtml_ext.cpp') diff --git a/khtml/khtml_ext.cpp b/khtml/khtml_ext.cpp index 9ffce6794..7cadfb944 100644 --- a/khtml/khtml_ext.cpp +++ b/khtml/khtml_ext.cpp @@ -115,7 +115,7 @@ void KHTMLPartBrowserExtension::editableWidgetFocused( TQWidget *widget ) connect( TQApplication::clipboard(), TQT_SIGNAL( dataChanged() ), this, TQT_SLOT( updateEditActions() ) ); - if ( m_editableFormWidget->inherits( "TQLineEdit" ) || m_editableFormWidget->inherits( "TQTextEdit" ) ) + if ( m_editableFormWidget->inherits( "QLineEdit" ) || m_editableFormWidget->inherits( "QTextEdit" ) ) connect( m_editableFormWidget, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateEditActions() ) ); @@ -140,7 +140,7 @@ void KHTMLPartBrowserExtension::editableWidgetBlurred( TQWidget * /*widget*/ ) if ( oldWidget ) { - if ( oldWidget->inherits( "TQLineEdit" ) || oldWidget->inherits( "TQTextEdit" ) ) + if ( oldWidget->inherits( "QLineEdit" ) || oldWidget->inherits( "QTextEdit" ) ) disconnect( oldWidget, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( updateEditActions() ) ); } @@ -201,9 +201,9 @@ void KHTMLPartBrowserExtension::cut() if ( !m_editableFormWidget ) return; - if ( m_editableFormWidget->inherits( "TQLineEdit" ) ) + if ( m_editableFormWidget->inherits( "QLineEdit" ) ) static_cast( &(*m_editableFormWidget) )->cut(); - else if ( m_editableFormWidget->inherits( "TQTextEdit" ) ) + else if ( m_editableFormWidget->inherits( "QTextEdit" ) ) static_cast( &(*m_editableFormWidget) )->cut(); } @@ -254,9 +254,9 @@ void KHTMLPartBrowserExtension::copy() } else { - if ( m_editableFormWidget->inherits( "TQLineEdit" ) ) + if ( m_editableFormWidget->inherits( "QLineEdit" ) ) static_cast( &(*m_editableFormWidget) )->copy(); - else if ( m_editableFormWidget->inherits( "TQTextEdit" ) ) + else if ( m_editableFormWidget->inherits( "QTextEdit" ) ) static_cast( &(*m_editableFormWidget) )->copy(); } } @@ -304,9 +304,9 @@ void KHTMLPartBrowserExtension::paste() if ( !m_editableFormWidget ) return; - if ( m_editableFormWidget->inherits( "TQLineEdit" ) ) + if ( m_editableFormWidget->inherits( "QLineEdit" ) ) static_cast( &(*m_editableFormWidget) )->paste(); - else if ( m_editableFormWidget->inherits( "TQTextEdit" ) ) + else if ( m_editableFormWidget->inherits( "QTextEdit" ) ) static_cast( &(*m_editableFormWidget) )->paste(); } -- cgit v1.2.1