From 2cd85add2c5d2ef615d7b5f5c2e20640ef5bb5c2 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 6 Jul 2016 11:00:42 -0400 Subject: Make lumina-config able to handle non-integer values for the panel settings as needed. --- src-qt5/core-utils/lumina-config/PanelWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-qt5/core-utils') 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()); -- cgit