forked from qt-creator/qt-creator
Core: Only act on left click on examples and the like
Change-Id: I4f676743851136d42ca87aa3f3bc49769ba86d56 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -603,6 +603,10 @@ bool ListItemDelegate::editorEvent(QEvent *event, QAbstractItemModel *model,
|
||||
if (!item)
|
||||
return false;
|
||||
auto mev = static_cast<QMouseEvent *>(event);
|
||||
|
||||
if (mev->button() != Qt::LeftButton) // do not react on right click
|
||||
return false;
|
||||
|
||||
if (index.isValid()) {
|
||||
const QPoint pos = mev->pos();
|
||||
if (pos.y() > option.rect.y() + GridProxyModel::TagsSeparatorY) {
|
||||
|
||||
Reference in New Issue
Block a user