From 91cd63e0fd43557b9b7abea9a7816004279081c7 Mon Sep 17 00:00:00 2001 From: likehomedream Date: Wed, 20 Dec 2023 17:41:31 +0800 Subject: [PATCH] fix plymouth tips error --- src/module/plymouththemewidget.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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);