|
|
|
@ -28,7 +28,7 @@ KTempFile *HTMLView::m_shadowGradientImage = 0;
|
|
|
|
|
int HTMLView::m_instances = 0;
|
|
|
|
|
|
|
|
|
|
HTMLView::HTMLView( TQWidget *parentWidget, const char *widgetname, const bool DNDEnabled, const bool JScriptEnabled )
|
|
|
|
|
: KHTMLPart( parentWidget, widgetname )
|
|
|
|
|
: TDEHTMLPart( parentWidget, widgetname )
|
|
|
|
|
{
|
|
|
|
|
m_instances++;
|
|
|
|
|
setJavaEnabled( false );
|
|
|
|
@ -74,7 +74,7 @@ HTMLView::enableCopyAction()
|
|
|
|
|
void
|
|
|
|
|
HTMLView::selectAll()
|
|
|
|
|
{
|
|
|
|
|
KHTMLPart::selectAll();
|
|
|
|
|
TDEHTMLPart::selectAll();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
@ -120,8 +120,8 @@ HTMLView::loadStyleSheet()
|
|
|
|
|
const TQColor bgColor = ContextBrowser::instance()->colorGroup().highlight();
|
|
|
|
|
TQColor gradientColor = bgColor;
|
|
|
|
|
|
|
|
|
|
//we have to set the color for body due to a KHTML bug
|
|
|
|
|
//KHTML sets the base color but not the text color
|
|
|
|
|
//we have to set the color for body due to a TDEHTML bug
|
|
|
|
|
//TDEHTML sets the base color but not the text color
|
|
|
|
|
styleSheet = TQString( "body { margin: 8px; font-size: %1px; color: %2; background-color: %3; font-family: %4; }" )
|
|
|
|
|
.arg( pxSize )
|
|
|
|
|
.arg( text )
|
|
|
|
@ -185,8 +185,8 @@ HTMLView::loadStyleSheet()
|
|
|
|
|
m_headerGradientImage->setAutoDelete( true );
|
|
|
|
|
m_shadowGradientImage->setAutoDelete( true );
|
|
|
|
|
|
|
|
|
|
//we have to set the color for body due to a KHTML bug
|
|
|
|
|
//KHTML sets the base color but not the text color
|
|
|
|
|
//we have to set the color for body due to a TDEHTML bug
|
|
|
|
|
//TDEHTML sets the base color but not the text color
|
|
|
|
|
styleSheet = TQString( "body { margin: 4px; font-size: %1px; color: %2; background-color: %3; background-image: url( %4 ); background-repeat: repeat; font-family: %5; }" )
|
|
|
|
|
.arg( pxSize )
|
|
|
|
|
.arg( text )
|
|
|
|
|