Skip to content

Commit

Permalink
opt: use qtcpsocket signal to implement the dictserver protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 26, 2023
1 parent 7801f77 commit 5dd3801
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dict/dictserver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,16 @@ void DictServerDictionary::loadIcon() noexcept
QString const & DictServerDictionary::getDescription()
{
if ( dictionaryDescription.isEmpty() ) {
dictionaryDescription = QCoreApplication::translate( "DictServer", "Url: " ) + url + "\n";
dictionaryDescription += QCoreApplication::translate( "DictServer", "Databases: " ) + databases.join( ", " ) + "\n";
dictionaryDescription = QCoreApplication::translate( "DictServer", "Url: " ) + url + "<br>";
dictionaryDescription += QCoreApplication::translate( "DictServer", "Databases: " ) + "<br>";
dictionaryDescription +=
QCoreApplication::translate( "DictServer", "Search strategies: " ) + strategies.join( ", " );
if ( !databases.isEmpty() ) {
dictionaryDescription += "\n\n";
dictionaryDescription += "<br><br>";
dictionaryDescription += QCoreApplication::translate( "DictServer", "Server databases" ) + " ("
+ QString::number( databases.size() ) + "):";
for ( const auto & serverDatabase : databases )
dictionaryDescription += "\n" + serverDatabase;
dictionaryDescription += "<br>" + serverDatabase;
}
}
return dictionaryDescription;
Expand Down

0 comments on commit 5dd3801

Please sign in to comment.