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

Method mouseReleaseEvent

ElaWidgetToolsExample/mainwindow.cpp:412–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412void MainWindow::mouseReleaseEvent(QMouseEvent* event)
413{
414 if (getCurrentNavigationIndex() != 2)
415 {
416 switch (event->button())
417 {
418 case Qt::BackButton:
419 {
420 this->setCurrentStackIndex(0);
421 break;
422 }
423 case Qt::ForwardButton:
424 {
425 this->setCurrentStackIndex(1);
426 break;
427 }
428 default:
429 {
430 break;
431 }
432 }
433 }
434 ElaWindow::mouseReleaseEvent(event);
435}

Callers

nothing calls this directly

Calls 1

setCurrentStackIndexMethod · 0.80

Tested by

no test coverage detected