diff --git a/src/module/plymouththemewidget.cpp b/src/module/plymouththemewidget.cpp index ce978fa..5ac1dcb 100644 --- a/src/module/plymouththemewidget.cpp +++ b/src/module/plymouththemewidget.cpp @@ -147,11 +147,17 @@ void PlymouthThemeWidget::initEditWidget() }); QLabel *tipLabel = new QLabel(); tipLabel->setText("大小不超过10MB
格式:MP4"); - + connect(btngroup, QOverload::of(&QButtonGroup::buttonClicked), [=](QAbstractButton* button) { + if (button == pic) { + tipLabel->setText("大小不超过20KB
格式:PNG"); + } else { + tipLabel->setText("大小不超过10MB
格式:MP4"); + } + }); showLayout->addWidget(defaultLabel); showLayout->addWidget(m_customLabel); showLayout->addWidget(addButton); - showLayout->addStretch(1); +// showLayout->addStretch(1); showLayout->addWidget(tipLabel); showWidget->setLayout(showLayout);