MiniTargetSelector: Sort build/deploy/run configurations case insensitively

Change-Id: Ifbb305808046ea85f1f250beef3a518842de8b01
Task-number: QTCREATORBUG-13963
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Daniel Teske
2015-07-24 15:38:32 +02:00
parent cac63d1dd0
commit f3a0e58843

View File

@@ -444,7 +444,7 @@ void GenericListWidget::addProjectConfiguration(ProjectConfiguration *pc)
int pos = count();
for (int i = 0; i < count(); ++i) {
ProjectConfiguration *p = item(i)->data(Qt::UserRole).value<ProjectConfiguration *>();
if (pc->displayName() < p->displayName()) {
if (caseFriendlyCompare(pc->displayName(), p->displayName()) < 0) {
pos = i;
break;
}
@@ -512,7 +512,7 @@ void GenericListWidget::displayNameChanged()
int pos = count();
for (int i = 0; i < count(); ++i) {
ProjectConfiguration *p = item(i)->data(Qt::UserRole).value<ProjectConfiguration *>();
if (pc->displayName() < p->displayName()) {
if (caseFriendlyCompare(pc->displayName(), p->displayName()) < 0) {
pos = i;
break;
}