| 1899 | } |
| 1900 | |
| 1901 | std::optional<Options::MouseCommand> Window::getMouseReleaseCommand(Qt::MouseButton button) const |
| 1902 | { |
| 1903 | switch (button) { |
| 1904 | case Qt::LeftButton: |
| 1905 | return options->commandWindow1(); |
| 1906 | case Qt::MiddleButton: |
| 1907 | return options->commandWindow2(); |
| 1908 | case Qt::RightButton: |
| 1909 | return options->commandWindow3(); |
| 1910 | default: |
| 1911 | return std::nullopt; |
| 1912 | } |
| 1913 | } |
| 1914 | |
| 1915 | std::optional<Options::MouseCommand> Window::getWheelCommand(Qt::Orientation orientation) const |
| 1916 | { |
no outgoing calls
no test coverage detected