| 1009 | } |
| 1010 | |
| 1011 | void 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 | |
| 1023 | void MainWindow::setup() { |
| 1024 | if (!m_initPassed) { |
nothing calls this directly
no outgoing calls
no test coverage detected