Skip to content

Commit

Permalink
fix: 调整控制中心一些模块增加按钮的位置
Browse files Browse the repository at this point in the history
Log: 调整控制中心键盘和语言模块下的键盘布局,系统语言,快捷键下方的增加按钮的位置,与控制中心默认程序模块和时间日期模块的增加按钮一致
  • Loading branch information
liwl authored and kegechen committed May 10, 2024
1 parent d11a3f5 commit 9ce2279
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ KBLayoutSettingWidget::KBLayoutSettingWidget(QWidget *parent)
btnLayout->addWidget(addLayout);
vLayout->addLayout(btnLayout);
vLayout->setSpacing(0);
vLayout->setContentsMargins(0, 10, 0, 5);
vLayout->setContentsMargins(0, 10, 0, 0);
setLayout(vLayout);

connect(addLayout, &DFloatingButton::clicked, this, &KBLayoutSettingWidget::onLayoutAdded);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ ShortCutSettingWidget::ShortCutSettingWidget(ShortcutModel *model, QWidget *pare
btnLayout->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);
btnLayout->addWidget(m_addCustomShortcut);
vlayout->addLayout(btnLayout);
vlayout->setContentsMargins(10, 10, 10, 5);
vlayout->setContentsMargins(10, 10, 10, 0);
setLayout(vlayout);
setFocusPolicy(Qt::FocusPolicy::ClickFocus);

Expand Down
2 changes: 1 addition & 1 deletion src/frame/window/modules/keyboard/systemlanguagewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ SystemLanguageWidget::SystemLanguageWidget(KeyboardModel *model, QWidget *parent
btnLayout->setAlignment(Qt::AlignBottom | Qt::AlignHCenter);
btnLayout->addWidget(m_addSystemLanguage);
vLayout->addLayout(btnLayout);
vLayout->setContentsMargins(10, 10, 10, 5);
vLayout->setContentsMargins(10, 10, 10, 0);
setLayout(vLayout);

connect(m_langListview, &DListView::clicked, this, &SystemLanguageWidget::setCurLangChecked);
Expand Down

0 comments on commit 9ce2279

Please sign in to comment.