void InfoScreens::editFieldModeBtnClicked(MultiFunctionButtonAction event) { switch (event) { case BTN_CLICK: moveToNextValue(); break; case BTN_DOUBLE_CLICK: if(delegatedMenuEvent) { String id = getCurrent()->getCurrentEditParam()->id; String newVal = *paramValueMap[id].val; if (delegatedMenuEvent(getCurrent()->getCurrentEditParam(), viewMode, InfoParamDataSet, newVal)) { return; } } setViewMode(ViewMode::EDIT); break; } }
/// /// \brief PuzzleSceneItem::mousePressEvent /// /// Captures the event of the player pressing the piece. /// /// \param event /// void PuzzleSceneItem::mousePressEvent(QGraphicsSceneMouseEvent *event) { moveToNextValue(); update(); QGraphicsItem::mousePressEvent(event); }