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

Method keyPressEvent

ElaWidgetTools/ElaContentDialog.cpp:194–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 painter.setBrush(ElaColorAnimation::getColor(this, ElaThemeColor(d->_themeMode, WindowBase), "LayoutArea"));
193 painter.drawRoundedRect(d->_buttonWidget->geometry(), 8, 8);
194 painter.restore();
195}
196
197void ElaContentDialog::keyPressEvent(QKeyEvent* event)
198{
199 Q_D(ElaContentDialog);
200 switch (event->key())
201 {
202 case Qt::Key_Escape:
203 {
204 d->_doCloseAnimation(false);
205 break;
206 }
207 default:
208 {
209 break;
210 }
211 }
212 event->accept();
213}

Callers

nothing calls this directly

Calls 1

_doCloseAnimationMethod · 0.80

Tested by

no test coverage detected