MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / focusInEvent

Method focusInEvent

ElaWidgetTools/ElaDoubleSpinBox.cpp:69–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67void ElaDoubleSpinBox::paintEvent(QPaintEvent* event)
68{
69 Q_D(ElaDoubleSpinBox);
70 QDoubleSpinBox::paintEvent(event);
71}
72
73void ElaDoubleSpinBox::contextMenuEvent(QContextMenuEvent* event)
74{
75 Q_D(ElaDoubleSpinBox);
76 ElaMenu* menu = d->_createStandardContextMenu();
77 if (!menu)
78 {
79 return;
80 }
81 menu->addSeparator();
82 const uint se = stepEnabled();
83 QAction* up = menu->addElaIconAction(ElaIconType::Plus, tr("增加"));
84 up->setEnabled(se & StepUpEnabled);
85 QAction* down = menu->addElaIconAction(ElaIconType::Minus, tr("减少"));
86 down->setEnabled(se & StepDownEnabled);
87 menu->addSeparator();
88

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected