OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582695f
)
avoid temporary in QAbstractItemView::mouseReleaseEvent()
author
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 8 Apr 2020 04:20:06 +0000
(
04:20
+0000)
committer
Ivailo Monev
<xakepa10@laimg.moc>
Wed, 8 Apr 2020 04:20:06 +0000
(
04:20
+0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/itemviews/qabstractitemview.cpp
patch
|
blob
|
history
diff --git
a/src/gui/itemviews/qabstractitemview.cpp
b/src/gui/itemviews/qabstractitemview.cpp
index
d194fbd
..
946ee80
100644
(file)
--- a/
src/gui/itemviews/qabstractitemview.cpp
+++ b/
src/gui/itemviews/qabstractitemview.cpp
@@
-1751,8
+1751,7
@@
void QAbstractItemView::mouseReleaseEvent(QMouseEvent *event)
{
Q_D(QAbstractItemView);
- QPoint pos = event->pos();
- QPersistentModelIndex index = indexAt(pos);
+ QPersistentModelIndex index = indexAt(event->pos());
if (state() == EditingState) {
if (d->isIndexValid(index)