Commit bc7e3f2c authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Hide label in TargetSetupPage when not needed

parent 6d6d59fc
......@@ -63,9 +63,9 @@ TargetSetupPage::TargetSetupPage(QWidget *parent) :
vbox->addWidget(m_treeWidget);
QHBoxLayout *hbox = new QHBoxLayout;
QLabel *directoryLabel = new QLabel(this);
directoryLabel->setText(tr("Scan for builds"));
hbox->addWidget(directoryLabel);
m_directoryLabel = new QLabel(this);
m_directoryLabel->setText(tr("Scan for builds"));
hbox->addWidget(m_directoryLabel);
m_directoryChooser = new Utils::PathChooser(this);
m_directoryChooser->setPromptDialogTitle(tr("Directory to import builds from"));
......@@ -247,6 +247,7 @@ void TargetSetupPage::setImportDirectoryBrowsingEnabled(bool browsing)
{
m_directoryChooser->setEnabled(browsing);
m_directoryChooser->setVisible(browsing);
m_directoryLabel->setVisible(browsing);
}
void TargetSetupPage::setImportDirectoryBrowsingLocation(const QString &directory)
......
......@@ -39,6 +39,7 @@
#include <QtGui/QWizard>
QT_BEGIN_NAMESPACE
class QLabel;
class QTreeWidget;
QT_END_NAMESPACE
......@@ -116,6 +117,7 @@ private:
QList<ImportInfo> m_infos;
QTreeWidget *m_treeWidget;
Utils::PathChooser *m_directoryChooser;
QLabel *m_directoryLabel;
};
} // namespace Internal
......
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