mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Merge pull request #1601 from xiaoyifang/opt/remove-webkit
opt: remove webkit specific code
This commit is contained in:
commit
c8e10b6d31
|
@ -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 & );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue