Mention project name in targetsetuppage

Reviewed-by: dt
This commit is contained in:
Tobias Hunger
2010-04-13 12:52:20 +02:00
parent 0e79aeed71
commit 994ee7b6f4
2 changed files with 9 additions and 5 deletions

View File

@@ -51,11 +51,10 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) :
QVBoxLayout *vbox = new QVBoxLayout(this);
QLabel * importLabel = new QLabel(this);
importLabel->setText(tr("Qt Creator can set up the following targets:"));
importLabel->setWordWrap(true);
vbox->addWidget(importLabel);
m_importLabel = new QLabel(this);
m_importLabel->setText(tr("Qt Creator can set up the following targets:"));
m_importLabel->setWordWrap(true);
vbox->addWidget(m_importLabel);
m_treeWidget = new QTreeWidget(this);
m_treeWidget->setColumnCount(3);
@@ -277,6 +276,10 @@ void TargetSetupPage::setPreferMobile(bool mobile)
void TargetSetupPage::setProFilePath(const QString &path)
{
m_proFilePath = path;
if (!m_proFilePath.isEmpty()) {
m_importLabel->setText(tr("Qt Creator can set up the following targets for project <b>%1</b>:",
"%1: Project name").arg(QFileInfo(m_proFilePath).baseName()));
}
}
QList<TargetSetupPage::ImportInfo>

View File

@@ -115,6 +115,7 @@ private:
void resetInfos();
QList<ImportInfo> m_infos;
QLabel *m_importLabel;
QTreeWidget *m_treeWidget;
QPushButton *m_addDirectoryButton;
bool m_preferMobile;