1 #ifndef MUSICBACKGROUNDLISTWIDGET_H
2 #define MUSICBACKGROUNDLISTWIDGET_H
23 #include <QGridLayout>
50 inline void setFilePath(
const QString &path) noexcept { m_path = path; }
72 void setSelected(
bool v);
81 void setSelectEnabled(
bool v);
90 void setCloseEnabled(
bool v);
99 void setShowNameEnabled(
bool v);
119 virtual void mousePressEvent(QMouseEvent *event)
override final;
120 virtual void leaveEvent(QEvent *event)
override final;
121 virtual void enterEvent(
QtEnterEvent *event)
override final;
122 virtual void paintEvent(QPaintEvent *event)
override final;
160 void setCurrentItemName(
const QString &
name);
183 void addCellItem(
const QString &icon,
bool state);
187 void addCellItem(
const QString &
name,
const QString &path,
bool state);
197 bool contains(
const QString &
name)
const;
219 void updateLastItem();
224 inline int count()
const noexcept {
return m_items.count(); }
230 void itemClicked(
int type,
const QString &
name);
250 #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
#define TTK_DECLARE_MODULE(Class)
bool isSelectEnabled() const noexcept
MusicSkinItem m_imageInfo
void setFileName(const QString &name) noexcept
void setFilePath(const QString &path) noexcept
bool isCloseEnabled() const noexcept