@@ -516,7 +516,13 @@ void Expert::createOptionCard(GroupEntry &group, const QDomElement &child)
516516 docsLabel->setOpenExternalLinks (true );
517517 docsLabel->setContentsMargins (0 , 2 , 0 , 4 );
518518 // Use a smaller, muted style for the description text
519- docsLabel->setText (SMALL_FONT_START + docs + SMALL_FONT_END );
519+ QString display = SMALL_FONT_START + SA (" <b>" ) + id + SA (" </b>" );
520+ if (!docs.isEmpty ())
521+ {
522+ display += SA (" — " ) + docs;
523+ }
524+ display += SMALL_FONT_END ;
525+ docsLabel->setText (display);
520526 // Dim the label using PlaceholderText, which is calibrated for readable
521527 // secondary text in both light and dark modes (available since Qt 5.12).
522528 QColor textColor = docsLabel->palette ().color (QPalette::Text);
@@ -1137,7 +1143,14 @@ void Expert::filterChanged(const QString &text)
11371143 }
11381144 if (opt.docsLabel && opt.labelHighlighted )
11391145 {
1140- opt.docsLabel ->setText (SMALL_FONT_START + opt.docs + SMALL_FONT_END );
1146+ QString display = SMALL_FONT_START + SA (" <b>" ) + opt.id + SA (" </b>" );
1147+ if (!opt.docs .isEmpty ())
1148+ {
1149+ display += SA (" — " ) + opt.docs ;
1150+ }
1151+ display += SMALL_FONT_END ;
1152+ opt.docsLabel ->setText (display);
1153+ opt.input ->setText (opt.id );
11411154 opt.labelHighlighted = false ;
11421155 }
11431156 }
@@ -1176,6 +1189,7 @@ void Expert::filterChanged(const QString &text)
11761189 {
11771190 QString hiDocs = matchesDocs ? highlightInHtml (opt.docs , filter) : opt.docs ;
11781191 QString hiId = matchesId ? highlightInHtml (opt.id , filter) : opt.id ;
1192+ opt.input ->setText (hiId);
11791193 QString display = SMALL_FONT_START + SA (" <b>" ) + hiId + SA (" </b>" );
11801194 if (!opt.docs .isEmpty ())
11811195 {
0 commit comments