Debugger: Fix start/stop bits order in peripheral register field tooltip

Usually this order should be displayed as [to..from] instead of [from..to].

Change-Id: I4a309eedc104b10ac89a48beacb0e187af5c1899
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2019-07-31 23:37:04 +03:00
parent 73095f5506
commit d855263869

View File

@@ -167,7 +167,7 @@ QString PeripheralRegisterField::bitRangeString() const
{
const int from = bitOffset;
const int to = bitOffset + bitWidth - 1;
return PeripheralRegisterHandler::tr("[%1..%2]").arg(from).arg(to);
return PeripheralRegisterHandler::tr("[%1..%2]").arg(to).arg(from);
}
QString PeripheralRegisterField::bitValueString(quint64 regValue) const