forked from qt-creator/qt-creator
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: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user