Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkwidget
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#626
  • Loading branch information
deepin-ci-robot committed Dec 11, 2024
1 parent 4455a1a commit e95245f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/dstyleditemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,10 @@ bool DStyledItemDelegate::eventFilter(QObject *object, QEvent *event)
case QEvent::MouseButtonPress: {
D_D(DStyledItemDelegate);
d->pressedAction = nullptr;
const auto view = qobject_cast<QAbstractItemView*>(parent());
if (view) {
view->update();
}
Q_FALLTHROUGH();
}
case QEvent::MouseButtonRelease: {
Expand Down

0 comments on commit e95245f

Please sign in to comment.