10 m_lrcAnalysis(nullptr)
12 setObjectName(MusicLrcTranslatedWidget::metaObject()->className());
15 QVBoxLayout *mainLayout =
new QVBoxLayout(
this);
16 mainLayout->setContentsMargins(10, 0, 10, 0);
17 mainLayout->setSpacing(0);
19 QWidget *topWidget =
new QWidget(
this);
20 topWidget->setFixedHeight(40);
21 QHBoxLayout *topWidgetLayout =
new QHBoxLayout(topWidget);
22 topWidgetLayout->setContentsMargins(0, 0, 10, 0);
29 QPushButton *closeButton =
new QPushButton(
this);
30 closeButton->setFixedSize(14, 14);
32 closeButton->setCursor(QCursor(Qt::PointingHandCursor));
34 closeButton->setFocusPolicy(Qt::NoFocus);
36 connect(closeButton, SIGNAL(clicked()), SLOT(close()));
38 topWidgetLayout->addWidget(closeButton);
39 topWidget->setLayout(topWidgetLayout);
44 QScrollArea *scrollArea =
new QScrollArea(
this);
50 QWidget *view = scrollArea->viewport();
51 view->setObjectName(
"Viewport");
54 mainLayout->addWidget(topWidget);
55 mainLayout->addWidget(scrollArea);
56 setLayout(mainLayout);
96 if(orts.count() > trts.count())
101 for(
int i = 0; i < orts.count(); ++i)
103 text += QString(
"<font color=#AAAAAA>%1</font><br/>").arg(orts[i].trimmed());
104 text += QString(
"<font color=#FFFFFF>%1</font><br/>").arg(trts[i].trimmed());
113 QLabel::resizeEvent(event);
static const QString FontStyle03
QStringList dataList() const
static constexpr const char * BtnPClose
void setHeader(const QString &key, const QVariant &value) noexcept
static const QString FontStyle01
Font.
static const QString ColorStyle12
The class of the translation words manager request.
static const QString FontStyle05
static const QString BackgroundStyle01
Background.
static const QString ColorStyle03
static const QString BackgroundStyle07
QString filePath() const noexcept
QString dataString() const