refs #247 Style.

This commit is contained in:
Mathew Sutcliffe
2014-11-15 21:19:19 +00:00
parent 0179240619
commit 16e285cecd
17 changed files with 46 additions and 94 deletions

View File

@@ -305,10 +305,8 @@ namespace BlackGui
{
QVariant aQv = a.propertyByIndex(propertyIndex);
QVariant bQv = b.propertyByIndex(propertyIndex);
int compare = (order == Qt::AscendingOrder) ?
BlackMisc::compareQVariants(aQv, bQv) :
BlackMisc::compareQVariants(bQv, aQv);
return compare < 0;
int compare = BlackMisc::compareQVariants(aQv, bQv);
return (order == Qt::AscendingOrder) ? (compare < 0) : (compare > 0);
};
// KWB: qDebug() will be removed soon