cabana: fix new chart button placement on Windows (#27895)

old-commit-hash: 48ae73fb93
beeps
Willem Melching 2 years ago committed by GitHub
parent 36bf8e676f
commit e8833c7d93
  1. 2
      tools/cabana/signalview.cc

@ -352,7 +352,7 @@ bool SignalItemDelegate::helpEvent(QHelpEvent *event, QAbstractItemView *view, c
void SignalItemDelegate::updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const {
auto item = (SignalModel::Item *)index.internalPointer();
if (editor && item->type == SignalModel::Item::Sig && index.column() == 1) {
QRect geom = option.widget->style()->subElementRect(QStyle::SE_ItemViewItemText, &option);
QRect geom = option.rect;
geom.setLeft(geom.right() - editor->sizeHint().width());
editor->setGeometry(geom);
return;

Loading…
Cancel
Save