diff options
author | m0dB <79429057+m0dB@users.noreply.github.com> | 2023-05-06 13:17:10 +0200 |
---|---|---|
committer | m0dB <79429057+m0dB@users.noreply.github.com> | 2023-05-27 01:28:25 +0200 |
commit | c4093c674c1a77cabdcc3848585710048ed553c5 (patch) | |
tree | 930c110a552f659085cdc071093b1416edbc9540 /src | |
parent | 18378e439b1deadcda118d6489cdf0e538023df0 (diff) |
formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/widget/openglwindow.cpp | 15 | ||||
-rw-r--r-- | src/widget/trackdroptarget.h | 4 | ||||
-rw-r--r-- | src/widget/wglwidgetqopengl.cpp | 3 |
3 files changed, 12 insertions, 10 deletions
diff --git a/src/widget/openglwindow.cpp b/src/widget/openglwindow.cpp index cbf8818ef3..4e701db1bc 100644 --- a/src/widget/openglwindow.cpp +++ b/src/widget/openglwindow.cpp @@ -4,8 +4,8 @@ #include <QResizeEvent> #include "widget/tooltipqopengl.h" -#include "widget/wglwidget.h" #include "widget/trackdroptarget.h" +#include "widget/wglwidget.h" OpenGLWindow::OpenGLWindow(WGLWidget* widget) : m_pWidget(widget) { @@ -69,9 +69,9 @@ bool OpenGLWindow::event(QEvent* ev) { ToolTipQOpenGL::singleton().stop(m_pWidget); } - if (t == QEvent::DragEnter || t == QEvent::DragMove || t == QEvent::DragLeave || t == QEvent::Drop) - { - // Drag & Drop events are not delivered correctly when using QApplication::sendEvent + if (t == QEvent::DragEnter || t == QEvent::DragMove || + t == QEvent::DragLeave || t == QEvent::Drop) { + // Drag & Drop events are not delivered correctly when using QApplication::sendEvent // and even result in a recursive call to this method, so we use our own mechanism. if (m_pWidget->trackDropTarget()) { return m_pWidget->trackDropTarget()->handleDragAndDropEventFromWindow(ev); @@ -91,9 +91,10 @@ bool OpenGLWindow::event(QEvent* ev) { return result; } - // Send all remaining events to the widget that owns the window container widget that contains - // this QOpenGLWindow. With this mouse events, keyboard events, etc all arrive as intended, - // including the events for the WWaveformViewer that contains the waveform widget. + // Send all remaining events to the widget that owns the window + // container widget that contains this QOpenGLWindow. With this mouse + // events, keyboard events, etc all arrive as intended, including the + // events for the WWaveformViewer that contains the waveform widget. QApplication::sendEvent(m_pWidget, ev); } diff --git a/src/widget/trackdroptarget.h b/src/widget/trackdroptarget.h index 9171d177ef..e4d1384ebd 100644 --- a/src/widget/trackdroptarget.h +++ b/src/widget/trackdroptarget.h @@ -22,7 +22,9 @@ class TrackDropTarget { emit trackDropped(filename, group); // clazy:exclude=incorrect-emit } - virtual bool handleDragAndDropEventFromWindow(QEvent* event) { return false; } + virtual bool handleDragAndDropEventFromWindow(QEvent* event) { + return false; + } signals: virtual void trackDropped(const QString& filename, const QString& group) = 0; diff --git a/src/widget/wglwidgetqopengl.cpp b/src/widget/wglwidgetqopengl.cpp index eaaae5cbfe..fc7810b3e8 100644 --- a/src/widget/wglwidgetqopengl.cpp +++ b/src/widget/wglwidgetqopengl.cpp @@ -25,8 +25,7 @@ QPaintDevice* WGLWidget::paintDevice() { return m_pOpenGLWindow; } -void WGLWidget::setTrackDropTarget(TrackDropTarget* target) -{ +void WGLWidget::setTrackDropTarget(TrackDropTarget* target) { m_pTrackDropTarget = target; } |