MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / mouseDoubleClickEvent

Method mouseDoubleClickEvent

gui/qt/mainwindow.cpp:1011–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1009}
1010
1011void MainWindow::mouseDoubleClickEvent(QMouseEvent *event) {
1012 if (!childAt(event->pos())) {
1013 int sep = style()->pixelMetric(QStyle::PM_DockWidgetSeparatorExtent, Q_NULLPTR, this);
1014 if (redistributeDocks(event->pos(), {sep, 0}, Qt::SplitHCursor, &QSize::width, Qt::Horizontal) ||
1015 redistributeDocks(event->pos(), {0, sep}, Qt::SplitVCursor, &QSize::height, Qt::Vertical)) {
1016 event->accept();
1017 return;
1018 }
1019 }
1020 QMainWindow::mouseDoubleClickEvent(event);
1021}
1022
1023void MainWindow::setup() {
1024 if (!m_initPassed) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected