mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
fix:display dictionary info in the dictionary tab as html
This commit is contained in:
parent
15219eeb72
commit
c2e2b3a849
|
@ -225,10 +225,12 @@ void OrderAndProps::describeDictionary( DictListWidget * lst, QModelIndex const
|
|||
|
||||
ui.dictionaryFileList->setPlainText( filenamesText );
|
||||
|
||||
QString const& descText = dict->getDescription();
|
||||
QString descText = dict->getDescription();
|
||||
if( !descText.isEmpty() && descText.compare( "NONE" ) != 0 )
|
||||
{
|
||||
ui.dictionaryDescription->setPlainText( descText );
|
||||
//qtbug QTBUG-112020
|
||||
descText.remove( QRegularExpression( R"(<link[^>]*>)", QRegularExpression::CaseInsensitiveOption ) );
|
||||
ui.dictionaryDescription->setHtml( descText );
|
||||
ui.dictionaryDescription->setVisible( true );
|
||||
ui.dictionaryDescriptionLabel->setVisible( true );
|
||||
ui.infoVerticalSpacer->changeSize( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum );
|
||||
|
|
|
@ -167,7 +167,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPlainTextEdit" name="dictionaryDescription">
|
||||
<widget class="QTextEdit" name="dictionaryDescription">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
|
|
Loading…
Reference in a new issue