Ref T280, QHash for aircraft and models and some minor improvements

* CValueObject::comparePropertyByIndex
* bool "true" if value has been changed
This commit is contained in:
Klaus Basan
2018-06-13 23:14:26 +02:00
parent 9777bf963c
commit d49831abc4
6 changed files with 38 additions and 3 deletions

View File

@@ -191,7 +191,8 @@ namespace BlackMisc
case IndexCallsignStringAsSet: return m_callsignAsSet.compare(compareValue.m_callsignAsSet, Qt::CaseInsensitive);
case IndexTelephonyDesignator: return m_telephonyDesignator.compare(compareValue.m_telephonyDesignator, Qt::CaseInsensitive);
case IndexSuffix: return this->getSuffix().compare(compareValue.getSuffix(), Qt::CaseInsensitive);
default: break;
default:
return CValueObject::comparePropertyByIndex(index, compareValue);
}
Q_ASSERT_X(false, Q_FUNC_INFO, "Compare failed");
return 0;