From 03653925be6d76050409511c17eb1f0f8ec0e5aa Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Wed, 30 Mar 2022 15:21:16 +0800 Subject: [PATCH] optimize: double click send select text to tranlateline box. --- articleview.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/articleview.cc b/articleview.cc index e53352b9..9d0bc982 100644 --- a/articleview.cc +++ b/articleview.cc @@ -2046,7 +2046,7 @@ void ArticleView::contextMenuRequested( QPoint const & pos ) } } - qDebug( "title = %s\n", r->title().toLocal8Bit().data() ); + qDebug()<< "title = "<< r->title(); } @@ -2283,7 +2283,7 @@ void ArticleView::doubleClicked( QPoint pos ) if ( cfg.preferences.doubleClickTranslates ) { QString selectedText = ui.definition->selectedText(); - + emit sendWordToInputLine( selectedText ); // Do some checks to make sure there's a sensible selection indeed if ( Folding::applyWhitespaceOnly( gd::toWString( selectedText ) ).size() && selectedText.size() < 60 )