From bf625dc550465fc9ecd2be8ec7f2525292362f2e Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Tue, 11 Oct 2022 21:34:24 +0800 Subject: [PATCH] show dict id in dictionary info panel --- dictinfo.cc | 1 + dictinfo.ui | 120 ++++++++++++++++++++++++++++------------------------ 2 files changed, 66 insertions(+), 55 deletions(-) diff --git a/dictinfo.cc b/dictinfo.cc index af3f00de..9758b6c8 100644 --- a/dictinfo.cc +++ b/dictinfo.cc @@ -18,6 +18,7 @@ void DictInfo::showInfo( sptr dict ) { setWindowTitle( QString::fromUtf8( dict->getName().data(), dict->getName().size() ) ); + ui.dictionaryId->setText( QString::fromStdString( dict->getId() )); ui.dictionaryTotalArticles->setText( QString::number( dict->getArticleCount() ) ); ui.dictionaryTotalWords->setText( QString::number( dict->getWordCount() ) ); ui.dictionaryTranslatesFrom->setText( Language::localizedStringForId( dict->getLangFrom() ) ); diff --git a/dictinfo.ui b/dictinfo.ui index f7a965a6..58f8f80b 100644 --- a/dictinfo.ui +++ b/dictinfo.ui @@ -23,61 +23,6 @@ - - - - Total articles: - - - - - - - - - - Qt::AlignCenter - - - - - - - Translates from: - - - - - - - - - - - - - - Total words: - - - - - - - - - - Qt::AlignCenter - - - - - - - Translates to: - - - @@ -101,6 +46,27 @@ + + + + Translates from: + + + + + + + Total words: + + + + + + + Translates to: + + + @@ -111,6 +77,50 @@ + + + + Total articles: + + + + + + + + + + Qt::AlignCenter + + + + + + + + + + + + + + + + + Qt::AlignCenter + + + + + + + + + + Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse + + +