|
|
@ -393,7 +393,7 @@ void KMReaderWin::createWidgets() {
|
|
|
|
setStyleDependantFrameWidth();
|
|
|
|
setStyleDependantFrameWidth();
|
|
|
|
mBox->setFrameStyle( mMimePartTree->frameStyle() );
|
|
|
|
mBox->setFrameStyle( mMimePartTree->frameStyle() );
|
|
|
|
mColorBar = new HtmlStatusBar( mBox, "mColorBar" );
|
|
|
|
mColorBar = new HtmlStatusBar( mBox, "mColorBar" );
|
|
|
|
mViewer = new KHTMLPart( mBox, "mViewer" );
|
|
|
|
mViewer = new TDEHTMLPart( mBox, "mViewer" );
|
|
|
|
mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
|
|
|
|
mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
|
|
|
|
mSplitter->setResizeMode( mMimePartTree, TQSplitter::KeepSize );
|
|
|
|
mSplitter->setResizeMode( mMimePartTree, TQSplitter::KeepSize );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1033,7 +1033,7 @@ void KMReaderWin::contactStatusChanged( const TQString &uid)
|
|
|
|
kdDebug( 5006 ) << "name is " << n.nodeName().string() << endl;
|
|
|
|
kdDebug( 5006 ) << "name is " << n.nodeName().string() << endl;
|
|
|
|
kdDebug( 5006 ) << "value of content was " << n.firstChild().nodeValue().string() << endl;
|
|
|
|
kdDebug( 5006 ) << "value of content was " << n.firstChild().nodeValue().string() << endl;
|
|
|
|
TQString newPresence = kmkernel->imProxy()->presenceString( uid );
|
|
|
|
TQString newPresence = kmkernel->imProxy()->presenceString( uid );
|
|
|
|
if ( newPresence.isNull() ) // KHTML crashes if you setNodeValue( TQString() )
|
|
|
|
if ( newPresence.isNull() ) // TDEHTML crashes if you setNodeValue( TQString() )
|
|
|
|
newPresence = TQString::fromLatin1( "ENOIMRUNNING" );
|
|
|
|
newPresence = TQString::fromLatin1( "ENOIMRUNNING" );
|
|
|
|
n.firstChild().setNodeValue( newPresence );
|
|
|
|
n.firstChild().setNodeValue( newPresence );
|
|
|
|
// kdDebug( 5006 ) << "value of content is now " << n.firstChild().nodeValue().string() << endl;
|
|
|
|
// kdDebug( 5006 ) << "value of content is now " << n.firstChild().nodeValue().string() << endl;
|
|
|
@ -2685,7 +2685,7 @@ bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
|
|
|
|
if ( e->type() == TQEvent::MouseMove ) {
|
|
|
|
if ( e->type() == TQEvent::MouseMove ) {
|
|
|
|
TQMouseEvent* me = TQT_TQMOUSEEVENT( e );
|
|
|
|
TQMouseEvent* me = TQT_TQMOUSEEVENT( e );
|
|
|
|
|
|
|
|
|
|
|
|
// Handle this ourselves instead of connecting to mViewer::onURL(), since KHTML misses some
|
|
|
|
// Handle this ourselves instead of connecting to mViewer::onURL(), since TDEHTML misses some
|
|
|
|
// notifications in case we started a drag ourselves
|
|
|
|
// notifications in case we started a drag ourselves
|
|
|
|
slotUrlOn( linkForNode( mViewer->nodeUnderMouse() ) );
|
|
|
|
slotUrlOn( linkForNode( mViewer->nodeUnderMouse() ) );
|
|
|
|
|
|
|
|
|
|
|
@ -2695,7 +2695,7 @@ bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
|
|
|
|
mCanStartDrag = false;
|
|
|
|
mCanStartDrag = false;
|
|
|
|
slotUrlOn( TQString() );
|
|
|
|
slotUrlOn( TQString() );
|
|
|
|
|
|
|
|
|
|
|
|
// HACK: Send a mouse release event to the KHTMLView, as otherwise that will be missed in
|
|
|
|
// HACK: Send a mouse release event to the TDEHTMLView, as otherwise that will be missed in
|
|
|
|
// case we started a drag. If the event is missed, the HTML view gets into a wrong
|
|
|
|
// case we started a drag. If the event is missed, the HTML view gets into a wrong
|
|
|
|
// state, in which funny things like unsolicited drags start to happen.
|
|
|
|
// state, in which funny things like unsolicited drags start to happen.
|
|
|
|
TQMouseEvent mouseEvent( TQEvent::MouseButtonRelease, me->pos(), Qt::NoButton, Qt::NoButton );
|
|
|
|
TQMouseEvent mouseEvent( TQEvent::MouseButtonRelease, me->pos(), Qt::NoButton, Qt::NoButton );
|
|
|
|