18 m_currentPlayIndex(index),
21 QPalette plt(palette());
22 plt.setBrush(QPalette::Base, QBrush(QColor(0, 0, 0, 40)));
24 setAutoFillBackground(
true);
26 QPushButton *addButton =
new QPushButton(
this);
27 addButton->setGeometry(2, 25, 16, 16);
29 addButton->setCursor(QCursor(Qt::PointingHandCursor));
30 addButton->setToolTip(tr(
"Play Later"));
62 m_loveButton->setCursor(QCursor(Qt::PointingHandCursor));
75 m_moreButton->setCursor(QCursor(Qt::PointingHandCursor));
79 addButton->setFocusPolicy(Qt::NoFocus);
87 QMenu *menu =
new QMenu(
this);
93 connect(
m_deleteButton, SIGNAL(clicked()), parent, SLOT(removeItemAt()));
94 connect(
this, SIGNAL(
renameFinished(QString)), parent, SLOT(itemRenameFinished(QString)));
95 connect(
this, SIGNAL(
enterChanged(
int,
int)), parent, SLOT(itemCellEntered(
int,
int)));
96 connect(
m_showMVButton, SIGNAL(clicked()), parent, SLOT(showPlayedMovieQueryWidget()));
97 connect(addButton, SIGNAL(clicked()), parent, SLOT(addToPlayLater()));
156 const QPixmap &pix = meta.
cover();
212 QWidget::enterEvent(event);
219 menu->addAction(QIcon(
":/contextMenu/btn_similar"), tr(
"Similar"), parent(), SLOT(showPlayedSimilarQueryWidget()));
220 menu->addAction(QIcon(
":/contextMenu/btn_share"), tr(
"Share"), parent(), SLOT(showPlayedSongSharedWidget()));
226 if(!originPath.isNull())
bool containsLovestItem() const
static const QString ColorStyle06
#define QtEnterEvent
Event enter.
TTK_MODULE_EXPORT QString generateSongArtist(const QString &name, const QString &key=TTK_DEFAULT_STR)
static MusicApplication * instance()
static constexpr const char * TinyBtnUnDownload
static constexpr const char * TinyBtnPlayLater
static constexpr const char * TinyBtnDownload
static constexpr const char * TinyBtnUnLove
static constexpr const char * TinyBtnDelete
TTK_MODULE_EXPORT QString generateSongTitle(const QString &name, const QString &key=TTK_DEFAULT_STR)
The class of the item rename edit.
static constexpr const char * TinyBtnLove
static constexpr const char * TinyBtnMV
#define TTK_SIGNLE_SHOT(...)
static constexpr const char * TinyBtnMore
static const QString MenuStyle02
The class of the split item clicked widget.
static const QString LabelStyle02
static const QString PushButtonStyle10
QString containsDownloadItem(bool &contains) const