11 setObjectName(MusicLrcFloatSettingWidget::metaObject()->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);
37 connect(clickedGroup, SIGNAL(clicked(
int)), parent, SLOT(changeCurrentLrcColor(
int)));
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 MusicAbstractFloatWidget::show();
136 case 0: label->setPixmap(QPixmap(
":/color/lb_yellow"));
break;
137 case 1: label->setPixmap(QPixmap(
":/color/lb_indigo"));
break;
138 case 2: label->setPixmap(QPixmap(
":/color/lb_blue"));
break;
139 case 3: label->setPixmap(QPixmap(
":/color/lb_orange"));
break;
143 label->setGeometry(80 + index * 20, 25, 16, 16);
static const QString ColorStyle06
The class of the interior lrc container.
static const QString BackgroundStyle05
bool isShowArtistBackground() const noexcept
int findInteriorNextSize(int index) const
static constexpr const char * InteriorLrcSmaller
void artistBackgroundChanged()
int lrcSize() const noexcept
static constexpr const char * InteriorFloatSetting
The class of the label widget that can click.
static const QString CustomStyle02
void addWidget(QWidget *widget, int id=-1)
static const QString PushButtonStyle06
#define TTK_SIGNLE_SHOT(...)
static constexpr const char * InteriorLrcBigger
The class of the lrc helper.
void setLrcSize(int size)
int findInteriorLrcIndex(int size) const
The class of the label widget click group mapper.
int findInteriorPreSize(int index) const
#define TTKObjectCast(x, y)