mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-15 03:54:03 +08:00
cabana: fix BinaryView byte indices
This commit is contained in:
@@ -212,7 +212,7 @@ void BinaryViewModel::updateState() {
|
|||||||
QVariant BinaryViewModel::headerData(int section, Qt::Orientation orientation, int role) const {
|
QVariant BinaryViewModel::headerData(int section, Qt::Orientation orientation, int role) const {
|
||||||
if (orientation == Qt::Vertical) {
|
if (orientation == Qt::Vertical) {
|
||||||
switch (role) {
|
switch (role) {
|
||||||
case Qt::DisplayRole: return section + 1;
|
case Qt::DisplayRole: return section;
|
||||||
case Qt::SizeHintRole: return QSize(30, CELL_HEIGHT);
|
case Qt::SizeHintRole: return QSize(30, CELL_HEIGHT);
|
||||||
case Qt::TextAlignmentRole: return Qt::AlignCenter;
|
case Qt::TextAlignmentRole: return Qt::AlignCenter;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user