Merge pull request #1601 from xiaoyifang/opt/remove-webkit

opt: remove webkit specific code
This commit is contained in:
xiaoyifang 2024-06-21 17:59:04 +08:00 committed by GitHub
commit c8e10b6d31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 19 deletions

View file

@ -24,7 +24,6 @@ bool isNameOfVideo( string const & );
bool isNameOfPicture( string const & );
/// Returns true if the name resembles the one of a .tiff file (i.e. ends
/// with .tif or tiff). We have this one separately since we need to reconvert
/// TIFF files as WebKit doesn't seem to support them.
bool isNameOfTiff( string const & );
/// Returns true if the name resembles the one of a .css file
bool isNameOfCSS( string const & );

View file

@ -864,7 +864,7 @@ struct Class
QByteArray popupWindowState; // Binary state saved by QMainWindow
QByteArray popupWindowGeometry; // Geometry saved by QMainWindow
QByteArray dictInfoGeometry; // Geometry of "Dictionary info" window
QByteArray inspectorGeometry; // Geometry of WebKit inspector window
QByteArray inspectorGeometry; // Geometry of Web Engine inspector window
QByteArray dictionariesDialogGeometry; // Geometry of Dictionaries dialog
QString historyExportPath; // Path for export/import history

View file

@ -126,8 +126,7 @@ div.sdct_h {
}
.sdict_h_wav img {
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
}
/* StarDict type 'm' -- Pure meaning. Presented as <pre> */
@ -444,16 +443,14 @@ div.xdxf {
}
.dsl_s_wav img {
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
}
.dsl_video .img {
display: inline-block;
background: url("qrc:///icons/video.png");
background-repeat: no-repeat;
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
width: 22px;
height: 22px;
margin: 0;
@ -2978,6 +2975,5 @@ table#sv-hooks,
}
.gls_wav img {
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
}

View file

@ -163,8 +163,7 @@ div.sdct_h {
}
.sdict_h_wav img {
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
}
/* StarDict type 'm' -- Pure meaning. Presented as <pre> */
@ -492,16 +491,14 @@ div.xdxf {
}
.dsl_s_wav img {
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
}
.dsl_video .img {
display: inline-block;
background: url("qrc:///icons/video.png");
background-repeat: no-repeat;
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
width: 22px;
height: 22px;
margin: 0;
@ -3047,6 +3044,5 @@ table#sv-hooks,
}
.gls_wav img {
/* Ugly hack since "vertical-align: middle;" looks _terrible_ in Qt4's webkit: */
vertical-align: -30%;
vertical-align: middle;
}

View file

@ -471,7 +471,7 @@ void ArticleView::loadFinished( bool result )
void ArticleView::handleTitleChanged( QString const & title )
{
if ( !title.isEmpty() ) // Qt 5.x WebKit raise signal titleChanges(QString()) while navigation within page
if ( !title.isEmpty() )
emit titleChanged( this, title );
}