TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the desktop square remote widget. More...
#include <musicremotewidgetforsquare.h>
Public Slots | |
void | enterTimeout () |
void | leaveTimeout () |
![]() | |
void | volumeSliderChanged (int value) |
void | show () |
bool | close () |
Public Member Functions | |
MusicRemoteWidgetForSquare (QWidget *parent=nullptr) | |
~MusicRemoteWidgetForSquare () | |
![]() | |
MusicRemoteWidget (QWidget *parent=nullptr) | |
~MusicRemoteWidget () | |
void | setCurrentPlayState (bool state) const |
void | setVolumeValue (int index) |
int | mapRemoteTypeIndex () |
virtual void | setLabelText (const QString &text) |
![]() | |
TTKAbstractMoveWidget (QWidget *parent=nullptr) | |
TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
void | drawWindowShadow (bool show) |
void | blockOption (bool block) |
Private Member Functions | |
virtual void | enterEvent (QtEnterEvent *event) overridefinal |
virtual void | leaveEvent (QEvent *event) overridefinal |
Private Attributes | |
QGraphicsOpacityEffect * | m_effect [4] |
QTimer | m_enterTimer |
QTimer | m_leaveTimer |
float | m_interval |
Additional Inherited Members | |
![]() | |
enum | Module { Null = 0, Square, Rectangle, SimpleStyle, ComplexStyle, Ripple } |
![]() | |
void | showMainWindow () |
void | playStateChanged () |
void | playPreviousChanged () |
void | playNextChanged () |
void | volumeChanged (int value) |
void | settingChanged () |
void | remoteTypeChanged (QAction *type) |
![]() | |
virtual void | contextMenuEvent (QContextMenuEvent *event) override |
void | adjustPosition (QWidget *w) |
![]() | |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
![]() | |
QPushButton * | m_showMainWindowButton |
QPushButton * | m_preSongButton |
QPushButton * | m_nextSongButton |
QPushButton * | m_playButton |
QPushButton * | m_settingButton |
QWidget * | m_mainWidget |
QWidget * | m_volumeWidget |
QToolButton * | m_volumeButton |
TTKClickedSlider * | m_volumeSlider |
![]() | |
QPoint | m_mousePressedAt |
bool | m_blockOption |
bool | m_shadowOption |
bool | m_mouseLeftPressed |
The class of the desktop square remote widget.
Definition at line 29 of file musicremotewidgetforsquare.h.
|
explicit |
Object constructor.
Definition at line 5 of file musicremotewidgetforsquare.cpp.
References MusicRemoteWidget::adjustPosition(), enterTimeout(), leaveTimeout(), m_effect, m_enterTimer, m_interval, m_leaveTimer, MusicRemoteWidget::m_mainWidget, MusicRemoteWidget::m_nextSongButton, MusicRemoteWidget::m_playButton, MusicRemoteWidget::m_preSongButton, MusicRemoteWidget::m_settingButton, MusicRemoteWidget::m_showMainWindowButton, and MusicRemoteWidget::m_volumeWidget.
MusicRemoteWidgetForSquare::~MusicRemoteWidgetForSquare | ( | ) |
Object destructor.
Definition at line 49 of file musicremotewidgetforsquare.cpp.
References m_effect.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 57 of file musicremotewidgetforsquare.cpp.
References m_enterTimer, and m_leaveTimer.
|
slot |
Mouse enter the geometry time out.
Definition at line 71 of file musicremotewidgetforsquare.cpp.
References m_effect, m_interval, MusicRemoteWidget::m_nextSongButton, MusicRemoteWidget::m_playButton, MusicRemoteWidget::m_preSongButton, and MusicRemoteWidget::m_settingButton.
Referenced by MusicRemoteWidgetForSquare().
|
finaloverrideprivatevirtual |
Definition at line 64 of file musicremotewidgetforsquare.cpp.
References m_enterTimer, and m_leaveTimer.
|
slot |
Mouse leave the geometry time out.
Definition at line 84 of file musicremotewidgetforsquare.cpp.
References m_effect, m_interval, MusicRemoteWidget::m_nextSongButton, MusicRemoteWidget::m_playButton, MusicRemoteWidget::m_preSongButton, and MusicRemoteWidget::m_settingButton.
Referenced by MusicRemoteWidgetForSquare().
|
private |
Definition at line 60 of file musicremotewidgetforsquare.h.
Referenced by enterTimeout(), leaveTimeout(), MusicRemoteWidgetForSquare(), and ~MusicRemoteWidgetForSquare().
|
private |
Definition at line 61 of file musicremotewidgetforsquare.h.
Referenced by enterEvent(), leaveEvent(), and MusicRemoteWidgetForSquare().
|
private |
Definition at line 63 of file musicremotewidgetforsquare.h.
Referenced by enterTimeout(), leaveTimeout(), and MusicRemoteWidgetForSquare().
|
private |
Definition at line 62 of file musicremotewidgetforsquare.h.
Referenced by enterEvent(), leaveEvent(), and MusicRemoteWidgetForSquare().