Fix(ukcc-plugin): 解决控制面板插件崩溃问题
This commit is contained in:
parent
5cf7487027
commit
f1d339642d
|
@ -24,7 +24,7 @@
|
|||
NoticeMenu::NoticeMenu(QWidget *parent) :
|
||||
QMenu(parent)
|
||||
{
|
||||
setFixedSize(380, 380);
|
||||
setFixedSize(380, 190);
|
||||
initUi();
|
||||
setConnect();
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ void NoticeMenu::initStatus(UkuiNotification::SingleApplicationSettings *setting
|
|||
m_voiceBtn->blockSignals(true);
|
||||
m_showBtn->blockSignals(true);
|
||||
m_detailBtn->blockSignals(true);
|
||||
m_styleGroup->blockSignals(true);
|
||||
// m_styleGroup->blockSignals(true);
|
||||
|
||||
m_voiceBtn->setChecked(settings->allowSound());
|
||||
m_detailBtn->setChecked(settings->showContentOnLockScreen());
|
||||
|
@ -54,7 +54,7 @@ void NoticeMenu::initStatus(UkuiNotification::SingleApplicationSettings *setting
|
|||
m_voiceBtn->blockSignals(false);
|
||||
m_showBtn->blockSignals(false);
|
||||
m_detailBtn->blockSignals(false);
|
||||
m_styleGroup->blockSignals(false);
|
||||
// m_styleGroup->blockSignals(false);
|
||||
}
|
||||
|
||||
void NoticeMenu::setVoiceEnable(bool state)
|
||||
|
@ -115,7 +115,7 @@ void NoticeMenu::initUi()
|
|||
m_showBtn = new KSwitchButton;
|
||||
setFrame(showFrame, tr("Show noticfication on screenlock"), m_showBtn);
|
||||
|
||||
QFrame *line_3 = setLine();
|
||||
// QFrame *line_3 = setLine();
|
||||
|
||||
// QLabel *styletitleLabel = new QLabel(tr("Notification Style"), this);
|
||||
// styletitleLabel->setContentsMargins(24, 0, 0, 0);
|
||||
|
@ -142,7 +142,7 @@ void NoticeMenu::initUi()
|
|||
menuLyt->addWidget(detailFrame);
|
||||
menuLyt->addWidget(line_2);
|
||||
menuLyt->addWidget(showFrame);
|
||||
menuLyt->addWidget(line_3);
|
||||
// menuLyt->addWidget(line_3);
|
||||
menuLyt->addSpacing(16);
|
||||
// menuLyt->addWidget(styletitleLabel);
|
||||
// menuLyt->addWidget(mutativeFrame);
|
||||
|
@ -207,7 +207,7 @@ void NoticeMenu::setConnect()
|
|||
connect(m_voiceBtn, &KSwitchButton::stateChanged, this, &NoticeMenu::voiceSignals);
|
||||
connect(m_detailBtn, &KSwitchButton::stateChanged, this, &NoticeMenu::detailSignals);
|
||||
connect(m_showBtn, &KSwitchButton::stateChanged, this, &NoticeMenu::showSignals);
|
||||
connect(m_styleGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), this, &NoticeMenu::styleBtnSignals);
|
||||
// connect(m_styleGroup, QOverload<int>::of(&QButtonGroup::buttonClicked), this, &NoticeMenu::styleBtnSignals);
|
||||
}
|
||||
|
||||
void NoticeMenu::showEvent(QShowEvent *event)
|
||||
|
|
Loading…
Reference in New Issue