|
|
|
@ -168,7 +168,7 @@ inline TQColor midColor( const TQColor &a, const TQColor &b, double factor = 1.0
|
|
|
|
|
|
|
|
|
|
// Copied from Keramik...
|
|
|
|
|
static bool isFormWidget( const TQWidget *widget ) {
|
|
|
|
|
//Form widgets are in the KHTMLView, but that has 2 further inner levels
|
|
|
|
|
//Form widgets are in the TDEHTMLView, but that has 2 further inner levels
|
|
|
|
|
//of widgets - TQClipperWidget, and outside of that, TQViewportWidget
|
|
|
|
|
TQWidget * potentialClipPort = widget->parentWidget();
|
|
|
|
|
|
|
|
|
@ -180,9 +180,9 @@ static bool isFormWidget( const TQWidget *widget ) {
|
|
|
|
|
if ( !potentialViewPort || potentialViewPort->isTopLevel() || qstrcmp( potentialViewPort->name(), "qt_viewport" ) )
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
TQWidget *potentialKHTML = potentialViewPort->parentWidget();
|
|
|
|
|
TQWidget *potentialTDEHTML = potentialViewPort->parentWidget();
|
|
|
|
|
|
|
|
|
|
if ( !potentialKHTML || potentialKHTML->isTopLevel() || qstrcmp( potentialKHTML->className(), "KHTMLView" ) )
|
|
|
|
|
if ( !potentialTDEHTML || potentialTDEHTML->isTopLevel() || qstrcmp( potentialTDEHTML->className(), "TDEHTMLView" ) )
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|