mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix the size of the native CheckBox
This commit is contained in:
parent
4f4d2b10e9
commit
e46e0b683c
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ impl Item for NativeCheckBox {
|
|||
QStyleOptionButton option;
|
||||
option.rect = option.fontMetrics.boundingRect(text);
|
||||
option.text = std::move(text);
|
||||
return qApp->style()->sizeFromContents(QStyle::CT_PushButton, &option, option.rect.size(), nullptr) * dpr;
|
||||
return qApp->style()->sizeFromContents(QStyle::CT_CheckBox, &option, option.rect.size(), nullptr) * dpr;
|
||||
});
|
||||
LayoutInfo {
|
||||
min_width: size.width as f32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue