mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-14 09:22:05 +08:00
cabana: fix new chart button placement on Windows (#27895)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user