MCPcopy Create free account
hub / github.com/KDE/labplot / deselectItem

Method deselectItem

src/frontend/worksheet/WorksheetView.cpp:1589–1595  ·  view source on GitHub ↗

! * Deselects the \c QGraphicsItem \c item in \c WorksheetView. * The deselection in \c ProjectExplorer is forwarded to \c Worksheet * and is finally handled here. */

Source from the content-addressed store, hash-verified

1587 * and is finally handled here.
1588 */
1589void WorksheetView::deselectItem(QGraphicsItem* item) {
1590 m_suppressSelectionChangedEvent = true;
1591 item->setSelected(false);
1592 m_selectedItems.removeOne(item);
1593 handleCartesianPlotActions();
1594 m_suppressSelectionChangedEvent = false;
1595}
1596
1597/*!
1598 * Called on selection changes in the view.

Callers

nothing calls this directly

Calls 1

setSelectedMethod · 0.45

Tested by

no test coverage detected