6 #include <QButtonGroup>
11 setObjectName(className());
14 QLabel *colorLabel =
new QLabel(tr(
"Color"),
this);
15 QLabel *sizeLabel =
new QLabel(tr(
"Size"),
this);
16 QLabel *backLabel =
new QLabel(tr(
"Background"),
this);
20 colorLabel->setStyleSheet(labelStyle);
21 sizeLabel->setStyleSheet(labelStyle);
22 backLabel->setStyleSheet(labelStyle);
24 colorLabel->setAlignment(Qt::AlignCenter);
25 sizeLabel->setAlignment(Qt::AlignCenter);
26 backLabel->setAlignment(Qt::AlignCenter);
28 colorLabel->setGeometry(10, 23, 70, 20);
29 sizeLabel->setGeometry(10, 70, 70, 20);
30 backLabel->setGeometry(10, 115, 70, 20);
32 QButtonGroup *buttonGroup =
new QButtonGroup(
this);
39 QPushButton *sizeBigerButton =
new QPushButton(
this);
40 QPushButton *sizeSmallerButton =
new QPushButton(
this);
43 sizeBigerButton->setGeometry(85, 70, 24, 24);
44 sizeSmallerButton->setGeometry(125, 70, 24, 24);
45 sizeBigerButton->setCursor(QCursor(Qt::PointingHandCursor));
46 sizeSmallerButton->setCursor(QCursor(Qt::PointingHandCursor));
50 QPushButton *musicBackButton =
new QPushButton(tr(
"Defualt"),
this);
51 musicBackButton->setCursor(QCursor(Qt::PointingHandCursor));
53 QPushButton *artBackButton =
new QPushButton(tr(
"Art"),
this);
54 artBackButton->setCursor(QCursor(Qt::PointingHandCursor));
58 musicBackButton->setGeometry(15, 150, 60, 22);
59 artBackButton->setGeometry(90, 150, 60, 22);
61 QPushButton *settingButton =
new QPushButton(tr(
"More"),
this);
62 settingButton->setCursor(QCursor(Qt::PointingHandCursor));
63 connect(settingButton, SIGNAL(clicked()), parent, SIGNAL(showCurrentLrcSetting()));
65 settingButton->setGeometry(15, 175, 60, 22);
68 sizeBigerButton->setFocusPolicy(Qt::NoFocus);
69 sizeSmallerButton->setFocusPolicy(Qt::NoFocus);
70 musicBackButton->setFocusPolicy(Qt::NoFocus);
71 artBackButton->setFocusPolicy(Qt::NoFocus);
72 settingButton->setFocusPolicy(Qt::NoFocus);
78 m_rectEnter = QRect(513 + width, 120 + height / 2, 165, 210);
79 m_rectLeave = QRect(673 + width, 171 + height / 2, 165, 105);
85 QPushButton *button =
new QPushButton(
this);
88 case 0: button->setIcon(QIcon(
":/color/lb_yellow"));
break;
89 case 1: button->setIcon(QIcon(
":/color/lb_indigo"));
break;
90 case 2: button->setIcon(QIcon(
":/color/lb_blue"));
break;
91 case 3: button->setIcon(QIcon(
":/color/lb_orange"));
break;
94 button->setGeometry(80 + index * 20, 25, 16, 16);
95 button->setCursor(QCursor(Qt::PointingHandCursor));
97 button->setFocusPolicy(Qt::NoFocus);
140 MusicAbstractFloatWidget::show();
static const QString ColorStyle06
The class of the interior lrc container.
bool isShowArtistBackground() const
static const QString BackgroundStyle05
static constexpr const char * InteriorLrcSmaller
void artistBackgroundChanged()
static constexpr const char * InteriorFloatSetting
static const QString CustomStyle02
int findInteriorLrcIndex(int size) const
static const QString PushButtonStyle06
int findInteriorNextSize(int index) const
#define TTK_SIGNLE_SHOT(...)
static constexpr const char * InteriorLrcBigger
#define QtButtonGroupConnect(p, q, f, s)
Button group connect.
The class of the lrc defines.
int findInteriorPreSize(int index) const
void setLrcSize(int size)
#define TTKObjectCast(x, y)