Commit f552831c authored by Jens Bache-Wiig's avatar Jens Bache-Wiig
Browse files

Add project path to welcome page

Task-number: QTCREATORBUG-140
parent 382df08a
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment