1 #ifndef MUSICBACKGROUNDLISTWIDGET_H
2 #define MUSICBACKGROUNDLISTWIDGET_H
23 #include <QGridLayout>
49 inline void setFilePath(
const QString &path) noexcept { m_path = path; }
71 void setSelected(
bool v);
80 void setSelectEnabled(
bool v);
89 void setCloseEnabled(
bool v);
98 void setShowNameEnabled(
bool v);
118 virtual void mousePressEvent(QMouseEvent *event)
override final;
119 virtual void leaveEvent(QEvent *event)
override final;
120 virtual void enterEvent(
QtEnterEvent *event)
override final;
121 virtual void paintEvent(QPaintEvent *event)
override final;
158 void setCurrentItemName(
const QString &
name);
181 void addCellItem(
const QString &icon,
bool state);
185 void addCellItem(
const QString &
name,
const QString &path,
bool state);
195 bool contains(
const QString &
name)
const;
217 void updateLastItem();
222 inline int count()
const noexcept {
return m_items.count(); }
228 void itemClicked(
int type,
const QString &
name);
248 #endif // MUSICBACKGROUNDLISTWIDGET_H
#define QtEnterEvent
Event enter.
#define TTK_MODULE_EXPORT
bool isShowNameEnabled() const noexcept
bool isSelected() const noexcept
The class of the background list item.
QString fileName() const noexcept
The class of the skin backgroud image.
The class of the skin item.
QString filePath() const noexcept
bool isSelectEnabled() const noexcept
MusicSkinItem m_imageInfo
void setFileName(const QString &name) noexcept
void setFilePath(const QString &path) noexcept
bool isCloseEnabled() const noexcept