forked from qt-creator/qt-creator
Fix show/hide of importing label
This commit is contained in:
@@ -153,6 +153,8 @@ void Qt4ProjectConfigWidget::init(ProjectExplorer::BuildConfiguration *bc)
|
|||||||
this, SLOT(buildDirectoryChanged()));
|
this, SLOT(buildDirectoryChanged()));
|
||||||
disconnect(m_buildConfiguration, SIGNAL(qtVersionChanged()),
|
disconnect(m_buildConfiguration, SIGNAL(qtVersionChanged()),
|
||||||
this, SLOT(qtVersionChanged()));
|
this, SLOT(qtVersionChanged()));
|
||||||
|
disconnect(m_buildConfiguration, SIGNAL(qmakeBuildConfigurationChanged()),
|
||||||
|
this, SLOT(updateImportLabel()));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_buildConfiguration = static_cast<Qt4BuildConfiguration *>(bc);
|
m_buildConfiguration = static_cast<Qt4BuildConfiguration *>(bc);
|
||||||
@@ -161,6 +163,8 @@ void Qt4ProjectConfigWidget::init(ProjectExplorer::BuildConfiguration *bc)
|
|||||||
this, SLOT(buildDirectoryChanged()));
|
this, SLOT(buildDirectoryChanged()));
|
||||||
connect(m_buildConfiguration, SIGNAL(qtVersionChanged()),
|
connect(m_buildConfiguration, SIGNAL(qtVersionChanged()),
|
||||||
this, SLOT(qtVersionChanged()));
|
this, SLOT(qtVersionChanged()));
|
||||||
|
connect(m_buildConfiguration, SIGNAL(qmakeBuildConfigurationChanged()),
|
||||||
|
this, SLOT(updateImportLabel()));
|
||||||
|
|
||||||
m_ui->nameLineEdit->setText(m_buildConfiguration->displayName());
|
m_ui->nameLineEdit->setText(m_buildConfiguration->displayName());
|
||||||
|
|
||||||
|
@@ -70,10 +70,10 @@ private slots:
|
|||||||
void qtVersionsChanged();
|
void qtVersionsChanged();
|
||||||
void qtVersionChanged();
|
void qtVersionChanged();
|
||||||
void buildDirectoryChanged();
|
void buildDirectoryChanged();
|
||||||
|
void updateImportLabel();
|
||||||
private:
|
private:
|
||||||
void updateDetails();
|
void updateDetails();
|
||||||
void updateToolChainCombo();
|
void updateToolChainCombo();
|
||||||
void updateImportLabel();
|
|
||||||
Ui::Qt4ProjectConfigWidget *m_ui;
|
Ui::Qt4ProjectConfigWidget *m_ui;
|
||||||
QAbstractButton *m_browseButton;
|
QAbstractButton *m_browseButton;
|
||||||
Qt4BuildConfiguration *m_buildConfiguration;
|
Qt4BuildConfiguration *m_buildConfiguration;
|
||||||
|
Reference in New Issue
Block a user