|
TTKMusicPlayer
4.2.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 desktop simple remote widget. More...
#include <musicremotewidgetforsimplestyle.h>
Inheritance diagram for MusicRemoteWidgetForSimpleStyle:Public Member Functions | |
| MusicRemoteWidgetForSimpleStyle (QWidget *parent=nullptr) | |
| ~MusicRemoteWidgetForSimpleStyle () | |
| virtual void | setLabelText (const QString &value) overridefinal |
Public Member Functions inherited from MusicRemoteWidget | |
| MusicRemoteWidget (QWidget *parent=nullptr) | |
| ~MusicRemoteWidget () | |
| void | setCurrentPlayState (bool state) const |
| void | setVolumeValue (int index) |
| int | mapRemoteTypeIndex () |
Public Member Functions inherited from TTKAbstractMoveWidget | |
| TTKAbstractMoveWidget (QWidget *parent=nullptr) | |
| TTKAbstractMoveWidget (bool transparent, QWidget *parent=nullptr) | |
| void | drawWindowShadow (bool show) noexcept |
| void | blockOption (bool block) noexcept |
Private Attributes | |
| MusicMarqueeWidget * | m_songNameLabel |
Additional Inherited Members | |
Public Types inherited from MusicRemoteWidget | |
| enum | Module { Null = 0, Square, Rectangle, SimpleStyle, ComplexStyle, Ripple } |
Public Slots inherited from MusicRemoteWidget | |
| void | volumeSliderChanged (int value) |
| void | show () |
| bool | close () |
Signals inherited from MusicRemoteWidget | |
| void | showMainWindow () |
| void | playStateChanged () |
| void | playPreviousChanged () |
| void | playNextChanged () |
| void | volumeChanged (int value) |
| void | settingChanged () |
| void | remoteTypeChanged (QAction *type) |
Protected Member Functions inherited from MusicRemoteWidget | |
| virtual void | contextMenuEvent (QContextMenuEvent *event) override |
| void | adjustPosition (QWidget *w) |
Protected Member Functions inherited from TTKAbstractMoveWidget | |
| virtual void | paintEvent (QPaintEvent *event) override |
| virtual void | mousePressEvent (QMouseEvent *event) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| virtual void | mouseReleaseEvent (QMouseEvent *event) override |
Protected Attributes inherited from MusicRemoteWidget | |
| 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 |
Protected Attributes inherited from TTKAbstractMoveWidget | |
| QPoint | m_mousePressedAt |
| bool | m_blockOption |
| bool | m_shadowOption |
| bool | m_mouseLeftPressed |
The class of the desktop simple remote widget.
Definition at line 29 of file musicremotewidgetforsimplestyle.h.
|
explicit |
Object constructor.
Definition at line 4 of file musicremotewidgetforsimplestyle.cpp.
References MusicRemoteWidget::adjustPosition(), MusicRemoteWidget::m_mainWidget, MusicRemoteWidget::m_nextSongButton, MusicRemoteWidget::m_playButton, MusicRemoteWidget::m_preSongButton, MusicRemoteWidget::m_settingButton, MusicRemoteWidget::m_showMainWindowButton, m_songNameLabel, MusicRemoteWidget::m_volumeWidget, and TTK::UI::WidgetStyle01.
| MusicRemoteWidgetForSimpleStyle::~MusicRemoteWidgetForSimpleStyle | ( | ) |
Object destructor.
Definition at line 31 of file musicremotewidgetforsimplestyle.cpp.
References m_songNameLabel.
|
finaloverridevirtual |
Set current song text.
Reimplemented from MusicRemoteWidget.
Definition at line 36 of file musicremotewidgetforsimplestyle.cpp.
References TTK::Widget::elidedText(), m_songNameLabel, and MusicMarqueeWidget::setText().
|
private |
Definition at line 49 of file musicremotewidgetforsimplestyle.h.
Referenced by MusicRemoteWidgetForSimpleStyle(), setLabelText(), and ~MusicRemoteWidgetForSimpleStyle().
1.8.8