cabana: fix BinaryView byte indices

pull/26160/head^2
Adeeb Shihadeh 3 years ago
parent 3af2c1b363
commit 8a0475bd3b
  1. 2
      tools/cabana/binaryview.cc

@ -212,7 +212,7 @@ void BinaryViewModel::updateState() {
QVariant BinaryViewModel::headerData(int section, Qt::Orientation orientation, int role) const {
if (orientation == Qt::Vertical) {
switch (role) {
case Qt::DisplayRole: return section + 1;
case Qt::DisplayRole: return section;
case Qt::SizeHintRole: return QSize(30, CELL_HEIGHT);
case Qt::TextAlignmentRole: return Qt::AlignCenter;
}

Loading…
Cancel
Save