diff --git a/src/plugins/projectexplorer/projectwelcomepagewidget.cpp b/src/plugins/projectexplorer/projectwelcomepagewidget.cpp index f7abe9fbd8ea99cd7b1c7c628b65f95593989b8e..7429887294a91c9b5467ee5138320519ec1ec860 100644 --- a/src/plugins/projectexplorer/projectwelcomepagewidget.cpp +++ b/src/plugins/projectexplorer/projectwelcomepagewidget.cpp @@ -128,11 +128,15 @@ void ProjectWelcomePageWidget::updateWelcomePage(const WelcomePageData &welcomeP typedef QPair<QString, QString> QStringPair; if (welcomePageData.projectList.count() > 0) { int items = 0; + QFontMetrics fm = fontMetrics(); foreach (const QStringPair &it, welcomePageData.projectList) { if (++items > MAX_RECENT_ITEMS) break; const QFileInfo fi(it.first); - ui->projTreeWidget->addItem(it.second, it.first, + QString label = "<b>" + it.second + + "</b><br><font color=gray>" + + fm.elidedText(it.first, Qt::ElideMiddle, 250); + ui->projTreeWidget->addItem(label, it.first, QDir::toNativeSeparators(fi.absolutePath())); } } else {