TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicabstractmovewidget.cpp
Go to the documentation of this file.
3 
4 #include <QBoxLayout>
5 
7  : MusicAbstractMoveWidget(true, parent)
8 {
9 
10 }
11 
12 MusicAbstractMoveWidget::MusicAbstractMoveWidget(bool transparent, QWidget *parent)
13  : TTKAbstractMoveWidget(transparent, parent),
15 {
16  G_BACKGROUND_PTR->addObserver(this);
17 }
18 
20 {
21  G_BACKGROUND_PTR->removeObserver(this);
22 }
23 
25 {
27 }
28 
30 {
32  QWidget::show();
33 }
34 
35 
36 
38  : MusicAbstractMovePlainWidget(true, parent)
39 {
40 
41 }
42 
44  : MusicAbstractMoveWidget(transparent, parent)
45 {
46  QVBoxLayout *layout = new QVBoxLayout(this);
47  layout->setContentsMargins(4, 4, 4, 4);
48  layout->setSpacing(0);
49 
50  m_container = new QWidget(this);
51  layout->addWidget(m_container);
52  setLayout(layout);
53 }
54 
56 {
57  delete m_container;
58 }
MusicAbstractMovePlainWidget(QWidget *parent=nullptr)
The class of the moving widget with plain.
#define G_BACKGROUND_PTR
voidpf void uLong size
Definition: ioapi.h:136
MusicAbstractMoveWidget(QWidget *parent=nullptr)
void setBackgroundPixmap(const QSize &size)
The class of the ttk moving widget base.
The class of the widget background renderer.
The class of the moving widget base.