1 #ifndef MUSICSCREENSAVERWIDGET_H
2 #define MUSICSCREENSAVERWIDGET_H
23 #include <QPushButton>
24 #include <QGridLayout>
45 void setFilePath(
const QString &path);
49 void setStatus(
int index,
bool status);
53 void display(
const QPoint &point);
59 void itemClicked(
int index,
bool status);
65 void switchButtonState();
71 virtual void leaveEvent(QEvent *event)
override final;
72 virtual void focusOutEvent(QFocusEvent *event)
override final;
73 virtual void paintEvent(QPaintEvent *event)
override final;
102 void setFilePath(
const QString &path);
106 void setStatus(
int index,
bool status);
110 void setHoverVisible(
bool v);
116 virtual void enterEvent(
QtEnterEvent *event)
override final;
143 void addCellItem(QObject *
object,
const QString &path,
int index,
bool status);
147 void resizeGeometry();
153 virtual void resizeEvent(QResizeEvent *event)
override final;
177 void applyParameter();
188 static QVector<bool> parseSettingParameter();
194 void inputDataChanged();
198 void switchButtonState();
202 void downloadDataFinished(
const QString &bytes);
206 void currentItemClicked(
int index,
bool status);
248 void runningTimeout();
252 void backgroundTimeout();
258 virtual bool eventFilter(QObject *watched, QEvent *event)
override final;
268 #endif // MUSICSCREENSAVERWIDGET_H
#define QtEnterEvent
Event enter.
#define TTK_MODULE_EXPORT
The class of the screen saver list item.
MusicScreenSaverHoverItem * m_hoverItem
TTK_MODULE_EXPORT bool execute(const QString &path)
The class of the download data from queue request.
The class of the label transition animation.
QPushButton * m_enableButton
TTK_MODULE_EXPORT void initialize(TTK::Attribute attr)
The class of the widget resize interface.
The class of the screen saver hover item.
virtual void resizeGeometry()=0