mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 08:34:08 +00:00
Add "Copy Image" option into images context menu
This commit is contained in:
parent
7669d4f788
commit
3aa974b875
|
@ -1323,6 +1323,7 @@ void ArticleView::contextMenuRequested( QPoint const & pos )
|
||||||
imageUrl = QUrl::fromPercentEncoding( el.attribute( "src" ).toLatin1() );
|
imageUrl = QUrl::fromPercentEncoding( el.attribute( "src" ).toLatin1() );
|
||||||
if( !imageUrl.isEmpty() )
|
if( !imageUrl.isEmpty() )
|
||||||
{
|
{
|
||||||
|
menu.addAction( ui.definition->pageAction( QWebPage::CopyImageToClipboard ) );
|
||||||
saveImageAction = new QAction( tr( "Save &image..." ), &menu );
|
saveImageAction = new QAction( tr( "Save &image..." ), &menu );
|
||||||
menu.addAction( saveImageAction );
|
menu.addAction( saveImageAction );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue