diff options
author | Ken Moore <moorekou@gmail.com> | 2016-07-06 11:00:42 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-07-06 11:00:42 -0400 |
commit | 2cd85add2c5d2ef615d7b5f5c2e20640ef5bb5c2 (patch) | |
tree | 86efde784e57a916501eb16f7a653627cfc75f40 /src-qt5/core-utils | |
parent | Update the FreeBSD OS class a tiny bit: (diff) | |
download | lumina-2cd85add2c5d2ef615d7b5f5c2e20640ef5bb5c2.tar.gz lumina-2cd85add2c5d2ef615d7b5f5c2e20640ef5bb5c2.tar.bz2 lumina-2cd85add2c5d2ef615d7b5f5c2e20640ef5bb5c2.zip |
Make lumina-config able to handle non-integer values for the panel settings as needed.
Diffstat (limited to 'src-qt5/core-utils')
-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()); |