Commit 4ba79a55 authored by Tobias Hunger's avatar Tobias Hunger

cmake: Sort list of build targets

Task-number: QTCREATORBUG-8879
Change-Id: I08b0664d61829403a46f9d340afe3e5288308210
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 13e0d4e3
......@@ -337,7 +337,9 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
// TODO update this list also on rescans of the CMakeLists.txt
CMakeProject *pro = static_cast<CMakeProject *>(m_makeStep->target()->project());
foreach (const QString& buildTarget, pro->buildTargetTitles()) {
QStringList targetList = pro->buildTargetTitles();
targetList.sort(Qt::CaseInsensitive);
foreach (const QString &buildTarget, targetList) {
QListWidgetItem *item = new QListWidgetItem(buildTarget, m_buildTargetsList);
item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
item->setCheckState(m_makeStep->buildsBuildTarget(item->text()) ? Qt::Checked : Qt::Unchecked);
......
Markdown is supported
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