diff --git a/okular/part.cpp b/okular/part.cpp index 9ff7282b..d7a26a60 100644 --- a/okular/part.cpp +++ b/okular/part.cpp @@ -244,8 +244,8 @@ static Okular::EmbedMode detectEmbedMode( QWidget *parentWidget, QObject *parent return Okular::NativeShellMode; if ( parent - && ( QByteArray( "KHTMLPart" ) == parent->metaObject()->className() ) ) - return Okular::KHTMLPartMode; + && ( QByteArray( "KWebKitPart" ) == parent->metaObject()->className() ) ) + return Okular::KWebKitPartMode; Q_FOREACH ( const QVariant &arg, args ) { diff --git a/okular/part.h b/okular/part.h index 594eb441..b303f65e 100644 --- a/okular/part.h +++ b/okular/part.h @@ -81,7 +81,7 @@ enum EmbedMode UnknownEmbedMode, NativeShellMode, // embedded in the native Okular' shell PrintPreviewMode, // embedded to show the print preview of a document - KHTMLPartMode, // embedded in KHTML + KWebKitPartMode, // embedded in KHTML ViewerWidgetMode // the part acts as a widget that can display all kinds of documents };