Update slider control size

master
Jeremy HU 2022-11-04 22:07:20 +11:00
parent af67dc0cd6
commit a7b2caecfc
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ FloatNumberWidget::FloatNumberWidget(QWidget* parent, bool singleLine)
{ {
m_slider = new QSlider(Qt::Horizontal, this); m_slider = new QSlider(Qt::Horizontal, this);
m_slider->setRange(0, 100); m_slider->setRange(0, 100);
m_slider->setFixedWidth(240); m_slider->setFixedWidth(Theme::sidebarPreferredWidth * 0.6);
m_label = new QLabel(this); m_label = new QLabel(this);
m_label->setAlignment(Qt::AlignLeft); m_label->setAlignment(Qt::AlignLeft);