diff --git a/src/control/search-detail-view.cpp b/src/control/search-detail-view.cpp index aa3caee..109bdae 100644 --- a/src/control/search-detail-view.cpp +++ b/src/control/search-detail-view.cpp @@ -217,7 +217,7 @@ void SearchDetailView::setAppWidget(const QString &appname, const QString &path, m_optionView->show(); QFontMetrics fontMetrics = m_nameLabel->fontMetrics(); - QString showname = fontMetrics.elidedText(m_name, Qt::ElideRight, 215); //当字体长度超过215时显示为省略号 + QString showname = fontMetrics.elidedText(m_name, Qt::ElideRight, 200); //当字体长度超过200时显示为省略号 // m_nameLabel->setText(showname); m_nameLabel->setText(QString("

%1

").arg(escapeHtml(showname))); if(QString::compare(showname, m_name)) { @@ -353,7 +353,7 @@ void SearchDetailView::setupWidget(const int& type, const QString& path) { setIcon(path); QFontMetrics fontMetrics = m_nameLabel->fontMetrics(); QString wholeName = FileUtils::getFileName(path); - QString name = fontMetrics.elidedText(wholeName, Qt::ElideRight, 215); + QString name = fontMetrics.elidedText(wholeName, Qt::ElideRight, 200); // m_nameLabel->setText(name); m_nameLabel->setText(QString("

%1

").arg(escapeHtml(name))); if(QString::compare(name, wholeName)) {