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 lrc maker widget item. More...
#include <musiclrcmakerwidget.h>
Public Slots | |
void | setText (const QString &string) |
Public Member Functions | |
MusicLrcMakerWidgetItem (QWidget *ui=nullptr, QObject *parent=nullptr) | |
bool | biggerThan (int value) const |
bool | done () const |
void | reset () |
void | moveUp () |
void | moveDown () |
void | moveLeft () |
void | moveRight () |
Private Member Functions | |
virtual void | paintEvent (QPaintEvent *event) overridefinal |
Private Attributes | |
QObject * | m_parent |
bool | m_leftDirection |
bool | m_painetLineDone |
int | m_intervalCount |
int | m_itemDelta |
int | m_currentIndex |
int | m_paintIndex |
The class of the lrc maker widget item.
Definition at line 33 of file musiclrcmakerwidget.h.
|
explicit |
Object constructor.
Definition at line 18 of file musiclrcmakerwidget.cpp.
References TTK::UI::BackgroundStyle10, TTK::UI::BorderStyle02, reset(), and TTK_ITEM_SIZE_L.
bool MusicLrcMakerWidgetItem::biggerThan | ( | int | value | ) | const |
Check the last index.
Definition at line 32 of file musiclrcmakerwidget.cpp.
References m_currentIndex.
Referenced by MusicLrcMakerWidget::createCurrentLine().
bool MusicLrcMakerWidgetItem::done | ( | ) | const |
Current text line make done.
Definition at line 37 of file musiclrcmakerwidget.cpp.
References m_painetLineDone.
Referenced by MusicLrcMakerWidget::createCurrentLine().
void MusicLrcMakerWidgetItem::moveDown | ( | ) |
Item move down.
Definition at line 69 of file musiclrcmakerwidget.cpp.
References m_currentIndex, m_intervalCount, m_painetLineDone, m_paintIndex, and TTK_ITEM_SIZE_L.
Referenced by MusicLrcMakerWidget::createCurrentLine().
void MusicLrcMakerWidgetItem::moveLeft | ( | ) |
Item move left.
Definition at line 82 of file musiclrcmakerwidget.cpp.
References m_itemDelta, m_leftDirection, m_painetLineDone, and m_paintIndex.
Referenced by MusicLrcMakerWidget::createCurrentLine().
void MusicLrcMakerWidgetItem::moveRight | ( | ) |
Item move right.
Definition at line 95 of file musiclrcmakerwidget.cpp.
References TTK::Widget::fontTextWidth(), m_itemDelta, m_leftDirection, m_painetLineDone, m_paintIndex, m_parent, TTK_SIGNLE_SHOT, and TTK_SLOT.
Referenced by MusicLrcMakerWidget::createCurrentLine().
void MusicLrcMakerWidgetItem::moveUp | ( | ) |
Item move up.
Definition at line 54 of file musiclrcmakerwidget.cpp.
References m_currentIndex, m_intervalCount, m_painetLineDone, m_paintIndex, and TTK_ITEM_SIZE_L.
Referenced by MusicLrcMakerWidget::createCurrentLine().
|
finaloverrideprivatevirtual |
Override the widget event.
Definition at line 117 of file musiclrcmakerwidget.cpp.
References TTK::Widget::fontTextWidth(), m_intervalCount, m_itemDelta, m_leftDirection, and m_paintIndex.
void MusicLrcMakerWidgetItem::reset | ( | ) |
Item move reset.
Definition at line 42 of file musiclrcmakerwidget.cpp.
References m_currentIndex, m_intervalCount, m_itemDelta, m_leftDirection, m_painetLineDone, and m_paintIndex.
Referenced by MusicLrcMakerWidgetItem(), and MusicLrcMakerWidget::setCurrentSecondWidget().
|
slot |
Override the setText.
Definition at line 110 of file musiclrcmakerwidget.cpp.
References TTK::Widget::fontTextWidth(), and m_itemDelta.
Referenced by MusicLrcMakerWidget::createCurrentLine(), and MusicLrcMakerWidget::setCurrentSecondWidget().
|
private |
Definition at line 87 of file musiclrcmakerwidget.h.
Referenced by biggerThan(), moveDown(), moveUp(), and reset().
|
private |
Definition at line 86 of file musiclrcmakerwidget.h.
Referenced by moveDown(), moveUp(), paintEvent(), and reset().
|
private |
Definition at line 86 of file musiclrcmakerwidget.h.
Referenced by moveLeft(), moveRight(), paintEvent(), reset(), and setText().
|
private |
Definition at line 85 of file musiclrcmakerwidget.h.
Referenced by moveLeft(), moveRight(), paintEvent(), and reset().
|
private |
Definition at line 85 of file musiclrcmakerwidget.h.
Referenced by done(), moveDown(), moveLeft(), moveRight(), moveUp(), and reset().
|
private |
Definition at line 87 of file musiclrcmakerwidget.h.
Referenced by moveDown(), moveLeft(), moveRight(), moveUp(), paintEvent(), and reset().
|
private |
Definition at line 84 of file musiclrcmakerwidget.h.
Referenced by moveRight().