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 marquee widget. More...
#include <musicmarqueewidget.h>
Public Member Functions | |
MusicMarqueeWidget (QWidget *parent=nullptr) | |
void | setEffectOnResize (bool on) |
void | setText (const QString &newText) |
QString | text () const |
virtual QSize | sizeHint () const override |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
virtual void | showEvent (QShowEvent *event) overridefinal |
virtual void | hideEvent (QHideEvent *event) overridefinal |
virtual void | timerEvent (QTimerEvent *event) overridefinal |
virtual void | resizeEvent (QResizeEvent *event) overridefinal |
Private Attributes | |
QString | m_text |
int | m_offset |
int | m_timerId |
bool | m_effectOnResize |
The class of the marquee widget.
Definition at line 28 of file musicmarqueewidget.h.
|
explicit |
Object constructor.
Definition at line 5 of file musicmarqueewidget.cpp.
|
finaloverrideprivatevirtual |
Definition at line 81 of file musicmarqueewidget.cpp.
References m_timerId.
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 35 of file musicmarqueewidget.cpp.
References TTK::Widget::fontTextWidth(), m_offset, and m_text.
|
finaloverrideprivatevirtual |
Definition at line 88 of file musicmarqueewidget.cpp.
|
inline |
Set effect on resize.
Definition at line 41 of file musicmarqueewidget.h.
void MusicMarqueeWidget::setText | ( | const QString & | newText | ) |
Set marquee text.
Definition at line 14 of file musicmarqueewidget.cpp.
References TTK::Widget::fontTextWidth(), G_SETTING_PTR, m_effectOnResize, m_text, MusicSettingManager::WidgetSize, and WINDOW_WIDTH_MIN.
Referenced by resizeEvent(), MusicRemoteWidgetForStrip::setLabelText(), MusicRemoteWidgetForSimpleStyle::setLabelText(), MusicRemoteWidgetForRipple::setLabelText(), and MusicRemoteWidgetForRectangle::setLabelText().
|
finaloverrideprivatevirtual |
Definition at line 58 of file musicmarqueewidget.cpp.
References m_timerId.
|
overridevirtual |
|
inline |
|
finaloverrideprivatevirtual |
Definition at line 64 of file musicmarqueewidget.cpp.
References TTK::Widget::fontTextWidth(), m_offset, m_text, and m_timerId.
|
private |
Definition at line 67 of file musicmarqueewidget.h.
Referenced by setText().
|
private |
Definition at line 66 of file musicmarqueewidget.h.
Referenced by paintEvent(), and timerEvent().
|
private |
Definition at line 65 of file musicmarqueewidget.h.
Referenced by paintEvent(), setText(), sizeHint(), and timerEvent().
|
private |
Definition at line 66 of file musicmarqueewidget.h.
Referenced by hideEvent(), showEvent(), and timerEvent().