diff options
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core-utils/lumina-config/PanelWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core-utils/lumina-config/PanelWidget.cpp b/src-qt5/core-utils/lumina-config/PanelWidget.cpp index 10e12cbb..7132dcf8 100644 --- a/src-qt5/core-utils/lumina-config/PanelWidget.cpp +++ b/src-qt5/core-utils/lumina-config/PanelWidget.cpp @@ -49,8 +49,8 @@ void PanelWidget::LoadSettings(QSettings *settings, int Dnum, int Pnum){ if(tmp>=0){ ui->combo_align->setCurrentIndex( tmp ); } tmp = ui->combo_edge->findData( settings->value(prefix+"location","top").toString().toLower() ); if(tmp>=0){ ui->combo_edge->setCurrentIndex( tmp ); } - ui->spin_plength->setValue( settings->value( prefix+"lengthPercent",100).toInt() ); - ui->spin_pxthick->setValue( settings->value( prefix+"height",30).toInt() ); + ui->spin_plength->setValue( qRound(settings->value( prefix+"lengthPercent",100).toDouble()) ); + ui->spin_pxthick->setValue( qRound(settings->value( prefix+"height",30).toDouble()) ); ui->check_autohide->setChecked( settings->value(prefix+"hidepanel", false).toBool() ); ui->group_customcolor->setChecked( settings->value(prefix+"customColor",false).toBool() ); ui->label_color_sample->setWhatsThis( settings->value(prefix+"color","rgba(255,255,255,160)").toString()); |