update gesturewidget size

This commit is contained in:
hanteng@kylinos.cn 2022-09-26 14:43:10 +08:00
parent 07eb9fd6a1
commit 101c7fdd96
1 changed files with 4 additions and 4 deletions

View File

@ -15,8 +15,8 @@ const QString iconName = "video-x-generic-symbolic";
gestureWidget::gestureWidget(QWidget *parent) : QPushButton(parent)
{
setFocusPolicy(Qt::FocusPolicy::ClickFocus);
setMinimumWidth(100);
setFixedHeight(64);
setMinimumWidth(196);
setFixedHeight(60);
setCheckable(true);
setAutoExclusive(true);
setProperty("useButtonPalette", true);
@ -28,7 +28,7 @@ gestureWidget::gestureWidget(QWidget *parent) : QPushButton(parent)
);
QVBoxLayout *vlayout = new QVBoxLayout(this);
vlayout->setContentsMargins(16, 10, 0, 7);
vlayout->setContentsMargins(16, 10, 16, 7);
vlayout->setSpacing(0);
m_action = new QLabel(this);
m_action->setScaledContents(true);
@ -46,7 +46,7 @@ gestureWidget::gestureWidget(QWidget *parent) : QPushButton(parent)
}
QHBoxLayout *hlayout = new QHBoxLayout;
hlayout->setContentsMargins(0, 0, 0, 0);
hlayout->setSpacing(6);
hlayout->setSpacing(8);
hlayout->addWidget(m_action, 0, Qt::AlignVCenter);
hlayout->addWidget(m_playIcon, 0, Qt::AlignVCenter);
hlayout->addStretch();