forked from qt-creator/qt-creator
QbsPM: Move QbsBuildStepConfigWidget to cpp file
Change-Id: I9ad8598ca0fae7d5c48f7debb30a364c88456a46 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
e373061119
commit
a423f52310
@@ -62,6 +62,42 @@ static const char QBS_CLEAN_INSTALL_ROOT[] = "Qbs.CleanInstallRoot";
|
|||||||
namespace QbsProjectManager {
|
namespace QbsProjectManager {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
|
class QbsBuildStepConfigWidget : public ProjectExplorer::BuildStepConfigWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
QbsBuildStepConfigWidget(QbsBuildStep *step);
|
||||||
|
~QbsBuildStepConfigWidget();
|
||||||
|
QString summaryText() const;
|
||||||
|
QString displayName() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
void updateState();
|
||||||
|
void updateQmlDebuggingOption();
|
||||||
|
void updatePropertyEdit(const QVariantMap &data);
|
||||||
|
|
||||||
|
void changeBuildVariant(int);
|
||||||
|
void changeShowCommandLines(bool show);
|
||||||
|
void changeKeepGoing(bool kg);
|
||||||
|
void changeJobCount(int count);
|
||||||
|
void changeInstall(bool install);
|
||||||
|
void changeCleanInstallRoot(bool clean);
|
||||||
|
void changeForceProbes(bool forceProbes);
|
||||||
|
void applyCachedProperties();
|
||||||
|
|
||||||
|
// QML debugging:
|
||||||
|
void linkQmlDebuggingLibraryChecked(bool checked);
|
||||||
|
|
||||||
|
bool validateProperties(Utils::FancyLineEdit *edit, QString *errorMessage);
|
||||||
|
|
||||||
|
Ui::QbsBuildStepConfigWidget *m_ui;
|
||||||
|
|
||||||
|
QList<QPair<QString, QString> > m_propertyCache;
|
||||||
|
QbsBuildStep *m_step;
|
||||||
|
QString m_summary;
|
||||||
|
bool m_ignoreChange;
|
||||||
|
};
|
||||||
|
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
// QbsBuildStep:
|
// QbsBuildStep:
|
||||||
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
||||||
@@ -752,3 +788,5 @@ ProjectExplorer::BuildStep *QbsBuildStepFactory::clone(ProjectExplorer::BuildSte
|
|||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace QbsProjectManager
|
} // namespace QbsProjectManager
|
||||||
|
|
||||||
|
#include "qbsbuildstep.moc"
|
||||||
|
@@ -125,44 +125,6 @@ private:
|
|||||||
friend class QbsBuildStepConfigWidget;
|
friend class QbsBuildStepConfigWidget;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace Ui { class QbsBuildStepConfigWidget; }
|
|
||||||
|
|
||||||
class QbsBuildStepConfigWidget : public ProjectExplorer::BuildStepConfigWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
QbsBuildStepConfigWidget(QbsBuildStep *step);
|
|
||||||
~QbsBuildStepConfigWidget();
|
|
||||||
QString summaryText() const;
|
|
||||||
QString displayName() const;
|
|
||||||
|
|
||||||
private:
|
|
||||||
void updateState();
|
|
||||||
void updateQmlDebuggingOption();
|
|
||||||
void updatePropertyEdit(const QVariantMap &data);
|
|
||||||
|
|
||||||
void changeBuildVariant(int);
|
|
||||||
void changeShowCommandLines(bool show);
|
|
||||||
void changeKeepGoing(bool kg);
|
|
||||||
void changeJobCount(int count);
|
|
||||||
void changeInstall(bool install);
|
|
||||||
void changeCleanInstallRoot(bool clean);
|
|
||||||
void changeForceProbes(bool forceProbes);
|
|
||||||
void applyCachedProperties();
|
|
||||||
|
|
||||||
// QML debugging:
|
|
||||||
void linkQmlDebuggingLibraryChecked(bool checked);
|
|
||||||
|
|
||||||
bool validateProperties(Utils::FancyLineEdit *edit, QString *errorMessage);
|
|
||||||
|
|
||||||
Ui::QbsBuildStepConfigWidget *m_ui;
|
|
||||||
|
|
||||||
QList<QPair<QString, QString> > m_propertyCache;
|
|
||||||
QbsBuildStep *m_step;
|
|
||||||
QString m_summary;
|
|
||||||
bool m_ignoreChange;
|
|
||||||
};
|
|
||||||
|
|
||||||
class QbsBuildStepFactory : public ProjectExplorer::IBuildStepFactory
|
class QbsBuildStepFactory : public ProjectExplorer::IBuildStepFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Reference in New Issue
Block a user