Skip to content

Commit

Permalink
fix: [views] when the computer name is very long,the name field on th…
Browse files Browse the repository at this point in the history
…e property page is only partially displayed

as title

Log: When the computer name is exceeded, it is followed by an ellipsis.
Bug: https://pms.uniontech.com/bug-view-217341.html
  • Loading branch information
scx005548 authored and deepin-bot[bot] committed Aug 31, 2023
1 parent b2e9c4b commit d1a2550
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void ComputerPropertyDialog::iniThread()
void ComputerPropertyDialog::computerProcess(QMap<ComputerInfoItem, QString> computerInfo)
{
if (computerInfo.contains(ComputerInfoItem::kName))
computerName->setRightValue(computerInfo[ComputerInfoItem::kName]);
computerName->setRightValue(computerInfo[ComputerInfoItem::kName], Qt::TextElideMode::ElideRight);
if (computerInfo.contains(ComputerInfoItem::kVersion))
computerVersionNum->setRightValue(computerInfo[ComputerInfoItem::kVersion]);
if (computerInfo.contains(ComputerInfoItem::kEdition)) {
Expand Down

0 comments on commit d1a2550

Please sign in to comment.