|
TTKMusicPlayer
4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the ttk moving resize widget base. More...
#include <ttkabstractmoveresizewidget.h>
Inheritance diagram for TTKAbstractMoveResizeWidget:Public Member Functions | |
| TTKAbstractMoveResizeWidget (QWidget *parent=nullptr) | |
| TTKAbstractMoveResizeWidget (bool transparent, QWidget *parent=nullptr) | |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *object, QEvent *event) override |
| virtual void | paintEvent (QPaintEvent *event) override |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| virtual void | mouseReleaseEvent (QMouseEvent *event) override |
| void | sizeDirection () |
| void | moveDirection () |
| void | setObjectsTracking (const QWidgetList &objects) |
Private Attributes | |
| bool | m_borderPressed |
| bool | m_mouseLeftPressed |
| QPoint | m_windowPos |
| QPoint | m_pressedPos |
| QSize | m_pressedSize |
| TTK::Direction | m_direction |
The class of the ttk moving resize widget base.
Definition at line 35 of file ttkabstractmoveresizewidget.h.
|
explicit |
Object constructor.
Definition at line 14 of file ttkabstractmoveresizewidget.cpp.
|
explicit |
Definition at line 20 of file ttkabstractmoveresizewidget.cpp.
References m_borderPressed, and m_mouseLeftPressed.
|
overrideprotectedvirtual |
Override the widget event.
Reimplemented in MusicApplication.
Definition at line 33 of file ttkabstractmoveresizewidget.cpp.
References TTKStaticCast.
Referenced by MusicApplication::eventFilter().
|
overrideprotectedvirtual |
Reimplemented in MusicApplication.
Definition at line 83 of file ttkabstractmoveresizewidget.cpp.
References m_borderPressed, m_mouseLeftPressed, m_pressedPos, m_windowPos, moveDirection(), QtGlobalPosition, and sizeDirection().
Referenced by MusicApplication::mouseMoveEvent().
|
overrideprotectedvirtual |
Definition at line 60 of file ttkabstractmoveresizewidget.cpp.
References DISTANCE, m_borderPressed, m_mouseLeftPressed, m_pressedPos, m_pressedSize, m_windowPos, and QtGlobalPosition.
|
overrideprotectedvirtual |
Reimplemented in MusicApplication.
Definition at line 94 of file ttkabstractmoveresizewidget.cpp.
References m_borderPressed, m_direction, m_mouseLeftPressed, and TTK::No.
Referenced by MusicApplication::mouseReleaseEvent().
|
protected |
Move direction to be.
Definition at line 153 of file ttkabstractmoveresizewidget.cpp.
References TTK::Bottom, GEOMETRY, TTK::Left, TTK::LeftBottom, TTK::LeftTop, m_direction, m_pressedSize, m_windowPos, TTK::Right, TTK::RightBottom, TTK::RightTop, and TTK::Top.
Referenced by mouseMoveEvent().
|
overrideprotectedvirtual |
Definition at line 44 of file ttkabstractmoveresizewidget.cpp.
References DISTANCE, m_borderPressed, m_direction, and TTK::No.
|
protected |
set given widgets tracking.
Definition at line 286 of file ttkabstractmoveresizewidget.cpp.
Referenced by MusicApplication::MusicApplication(), and MusicSpectrumWidget::MusicSpectrumWidget().
|
protected |
Size direction detected.
Definition at line 103 of file ttkabstractmoveresizewidget.cpp.
References TTK::Bottom, DISTANCE, TTK::Left, TTK::LeftBottom, TTK::LeftTop, m_direction, TTK::No, TTK::Right, TTK::RightBottom, TTK::RightTop, and TTK::Top.
Referenced by mouseMoveEvent().
|
private |
Definition at line 69 of file ttkabstractmoveresizewidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), paintEvent(), and TTKAbstractMoveResizeWidget().
|
private |
Definition at line 73 of file ttkabstractmoveresizewidget.h.
Referenced by mouseReleaseEvent(), moveDirection(), paintEvent(), and sizeDirection().
|
private |
Definition at line 70 of file ttkabstractmoveresizewidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and TTKAbstractMoveResizeWidget().
|
private |
Definition at line 71 of file ttkabstractmoveresizewidget.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 72 of file ttkabstractmoveresizewidget.h.
Referenced by mousePressEvent(), and moveDirection().
|
private |
Definition at line 71 of file ttkabstractmoveresizewidget.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and moveDirection().
1.8.8