aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Saraiva <[email protected]>2015-09-18 12:01:27 -0300
committerFilipe Saraiva <[email protected]>2015-09-18 12:01:27 -0300
commit1e5358e03223b5cb7989077aac35f5a1044565b1 (patch)
treec978bc0dd5536f7fd16372c592f707fb95347fee
parentebdb577a4473fa788040764ee666f6d8dc7cdacc (diff)
Add QTransform to itemAt functions
-rw-r--r--src/worksheet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worksheet.cpp b/src/worksheet.cpp
index f6146c3..80d329b 100644
--- a/src/worksheet.cpp
+++ b/src/worksheet.cpp
@@ -381,7 +381,7 @@ void Worksheet::invalidateLastEntry()
WorksheetEntry* Worksheet::entryAt(qreal x, qreal y)
{
- QGraphicsItem* item = itemAt(x, y);
+ QGraphicsItem* item = itemAt(x, y, QTransform());
while (item && (item->type() <= QGraphicsItem::UserType ||
item->type() >= QGraphicsItem::UserType + 100))
item = item->parentItem();
@@ -1058,7 +1058,7 @@ void Worksheet::populateMenu(QMenu *menu, const QPointF& pos)
WorksheetEntry* entry = entryAt(pos);
if (entry && !entry->isAncestorOf(m_lastFocusedTextItem)) {
WorksheetTextItem* item =
- qgraphicsitem_cast<WorksheetTextItem*>(itemAt(pos));
+ qgraphicsitem_cast<WorksheetTextItem*>(itemAt(pos, QTransform()));
if (item && item->isEditable())
m_lastFocusedTextItem = item;
}