Skip to content
Snippets Groups Projects
Commit 994ee7b6 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Mention project name in targetsetuppage

Reviewed-by: dt
parent 0e79aeed
No related branches found
No related tags found
No related merge requests found
...@@ -51,11 +51,10 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) : ...@@ -51,11 +51,10 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) :
QVBoxLayout *vbox = new QVBoxLayout(this); QVBoxLayout *vbox = new QVBoxLayout(this);
QLabel * importLabel = new QLabel(this); m_importLabel = new QLabel(this);
importLabel->setText(tr("Qt Creator can set up the following targets:")); m_importLabel->setText(tr("Qt Creator can set up the following targets:"));
importLabel->setWordWrap(true); m_importLabel->setWordWrap(true);
vbox->addWidget(m_importLabel);
vbox->addWidget(importLabel);
m_treeWidget = new QTreeWidget(this); m_treeWidget = new QTreeWidget(this);
m_treeWidget->setColumnCount(3); m_treeWidget->setColumnCount(3);
...@@ -277,6 +276,10 @@ void TargetSetupPage::setPreferMobile(bool mobile) ...@@ -277,6 +276,10 @@ void TargetSetupPage::setPreferMobile(bool mobile)
void TargetSetupPage::setProFilePath(const QString &path) void TargetSetupPage::setProFilePath(const QString &path)
{ {
m_proFilePath = 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> QList<TargetSetupPage::ImportInfo>
......
...@@ -115,6 +115,7 @@ private: ...@@ -115,6 +115,7 @@ private:
void resetInfos(); void resetInfos();
QList<ImportInfo> m_infos; QList<ImportInfo> m_infos;
QLabel *m_importLabel;
QTreeWidget *m_treeWidget; QTreeWidget *m_treeWidget;
QPushButton *m_addDirectoryButton; QPushButton *m_addDirectoryButton;
bool m_preferMobile; bool m_preferMobile;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment