1 #ifndef MUSICBACKGROUNDLISTWIDGET_H
2 #define MUSICBACKGROUNDLISTWIDGET_H
23 #include <QGridLayout>
46 inline QString
fileName()
const {
return m_name; }
50 inline void setFilePath(
const QString &path) { m_path = path; }
54 inline QString
filePath()
const {
return m_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 {
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 isSelectEnabled() const
The class of the background list item.
bool isShowNameEnabled() const
void setFilePath(const QString &path)
The class of the skin backgroud image.
The class of the skin item.
void setFileName(const QString &name)
#define TTK_DECLARE_MODULE(Class)
MusicSkinItem m_imageInfo
bool isCloseEnabled() const