11 #include <QParallelAnimationGroup>
20 setWindowTitle(tr(
"TTKMovie"));
27 QVBoxLayout *layout =
new QVBoxLayout(
this);
28 layout->setContentsMargins(0, 0, 0, 0);
29 layout->setSpacing(0);
34 QHBoxLayout *topLayout =
new QHBoxLayout(
m_topWidget);
35 topLayout->setContentsMargins(9, 4, 9, 4);
38 m_textLabel->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
45 topLayout->addStretch();
53 connect(
m_closeButton, SIGNAL(clicked()), parent, SLOT(videoNeedToClose()));
64 QWidget *topMaskWidget =
new QWidget(
this);
65 topMaskWidget->setFixedHeight(35);
68 layout->addWidget(topMaskWidget);
80 #if TTK_QT_VERSION_CHECK(5,0,0)
83 QWidget *videoMaskWidget =
new QWidget(
this);
84 videoMaskWidget->setObjectName(
"videoMaskWidget");
86 QHBoxLayout *videoMaskWidgetLayout =
new QHBoxLayout(videoMaskWidget);
87 videoMaskWidgetLayout->setContentsMargins(0, 0, 0, 0);
191 if(isFullScreen() && !rect.isNull())
217 m_backButton->setFixedSize(20, 20);
218 m_backButton->setToolTip(tr(
"Back"));
219 m_backButton->setCursor(QCursor(Qt::PointingHandCursor));
222 topLayout->insertWidget(0, m_backButton);
251 const TTK::MusicSongPropertyList &props = info.
m_songProps;
327 if(name.isEmpty() ||
id.isEmpty())
346 if(w->y() != height())
349 start(0, topHeight, height() - w->height() -
m_topWidget->height(), height());
355 TTKAbstractMoveWidget::resizeEvent(event);
364 TTKAbstractMoveWidget::enterEvent(event);
368 if(w->y() >= height())
371 start(topHeight, 0, height(), height() - w->height() -
m_topWidget->height());
377 TTKAbstractMoveWidget::leaveEvent(event);
390 animation->setStartValue(QPoint(0, st));
391 animation->setEndValue(QPoint(0, end));
393 animation->setStartValue(QPoint(0, ctrlst));
394 animation->setEndValue(QPoint(0, ctrlend));
static const QString ColorStyle06
#define QtEnterEvent
Event enter.
TTK_MODULE_EXPORT QString generateSongName(const QString &title, const QString &artist)
static MusicApplication * instance()
static const QString BorderStyle01
border
The class of the music song property.
static const QString BackgroundStyle08
static constexpr const char * BtnPClose
The class of the app main widget.
MusicSearchEdit * editor() const
#define MUSIC_MOVIE_RADIO
static const QString BackgroundStyle02
void setMedia(const QString &url)
static QRect screenGeometry(int index=0)
static const QString BackgroundStyle10
MusicVideoControlWidget * controlBarWidget() const
The class of the video view widget.
The class of the video item play data item.
void setBarrage(const QString &name, const QString &id)
void resizeGeometry(int width, int height)
The class of the query line edit widget.
static constexpr const char * BtnBackBack
#define WINDOW_HEIGHT_MIN
#define TTKObjectCast(x, y)