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

Method selectItem

src/frontend/worksheet/WorksheetView.cpp:1576–1582  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1574 * and is finally handled here.
1575 */
1576void WorksheetView::selectItem(QGraphicsItem* item) {
1577 m_suppressSelectionChangedEvent = true;
1578 item->setSelected(true);
1579 m_selectedItems << item;
1580 handleCartesianPlotActions();
1581 m_suppressSelectionChangedEvent = false;
1582}
1583
1584/*!
1585 * Deselects the \c QGraphicsItem \c item in \c WorksheetView.

Callers 1

Calls 1

setSelectedMethod · 0.45

Tested by 1