1 #ifndef MUSICLRCCONTAINERFORDESKTOP_H
2 #define MUSICLRCCONTAINERFORDESKTOP_H
30 class MusicLRCManagerForDesktop;
51 virtual void start()
override final;
55 virtual void stop()
override final;
64 virtual void initCurrentLrc()
const;
69 void setCurrentPlayState(
bool state)
const;
73 void updateCurrentLrc(
const QString &first,
const QString &second, qint64 time);
87 void setWindowLockedChanged(
bool lock);
93 void setWindowLockedChanged();
97 void setLrcBiggerChanged();
101 void setLrcSmallerChanged();
105 void toolStyleChanged();
109 virtual void setSingleLineTypeChanged();
115 void createColorMenu(QMenu *menu);
119 void setSelfPosition()
const;
123 void creatToolBarWidget();
128 virtual void resizeLrcSizeArea() = 0;
132 void resizeLrcSizeArea(
bool resize);
136 virtual void mousePressEvent(QMouseEvent *event)
override final;
137 virtual void mouseMoveEvent(QMouseEvent *event)
override final;
138 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
139 virtual void enterEvent(
QtEnterEvent *event)
override final;
140 virtual void leaveEvent(QEvent *event)
override final;
141 virtual void closeEvent(QCloseEvent *event)
override final;
218 #endif // MUSICLRCCONTAINERFORDESKTOP_H
#define QtEnterEvent
Event enter.
#define TTK_MODULE_EXPORT
bool isVerticalWindowType() const noexcept
QBoxLayout * m_toolBarLayout
static constexpr int TOOLBAR_TEXT_LENGTH
The class of the desktop vertical lrc container.
virtual void setSingleLineTypeChanged()
virtual void initCurrentLrc() const
The class of the lrc container base.
QToolButton * m_toolPlayButton
virtual void applyParameter()
The class of the desktop horizontal lrc container.
static constexpr int TOOLBAR_MAIN_HEIGHT
static constexpr int TOOLBAR_HEIGHT
virtual void resizeLrcSizeArea()=0
static constexpr int TOOLBAR_WIDTH
QWidget * m_toolBarWidget
The class of the desktop lrc container.