Commit 18cca66a authored by Niels Weber's avatar Niels Weber Committed by hjk

Fix off by one in tooltip

The Tooltip was talking about bits 0..8, 8..16 etc - that is
one bit too many.

Change-Id: If97217561cd9cf0d32c44c7ceaa4bb50d0be4f31
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 21a94e5e
......@@ -588,7 +588,7 @@ QVariant RegisterEditItem::data(int column, int role) const
case Qt::ToolTipRole: {
RegisterItem *registerItem = static_cast<RegisterItem *>(parent()->parent());
return RegisterHandler::tr("Edit bits %1...%2 of register %3")
.arg(m_index * 8).arg(m_index * 8 + 8)
.arg(m_index * 8).arg(m_index * 8 + 7)
.arg(QString::fromLatin1(registerItem->m_reg.name));
}
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment