src/EditRecipe.cpp

changeset 97
8283bbf95806
parent 96
c36fef8bb088
child 98
1425bf3e18ed
--- a/src/EditRecipe.cpp	Thu Mar 31 17:16:44 2022 +0200
+++ b/src/EditRecipe.cpp	Thu Mar 31 23:10:57 2022 +0200
@@ -70,39 +70,27 @@
 	ui->est_ogEdit->setValue(query.value(28).toDouble());
 	ui->est_ogShow->setRange(query.value(9).toDouble(), query.value(10).toDouble());
 	ui->est_ogShow->setPrecision(3);
-	ui->est_ogShow->setTickMarks(0.010, 2);
-	ui->est_ogShow->setBackgroundBrush(QColor(121,201,121));
-	ui->est_ogShow->setPreferredRangeBrush(QColor(0,127,0));
 	ui->est_ogShow->setMarkerTextIsValue(true);
 	ui->est_ogShow->setValue(query.value(28).toDouble());
 
 	ui->est_fgEdit->setValue(query.value(29).toDouble());
         ui->est_fgShow->setRange(query.value(11).toDouble(), query.value(12).toDouble());
         ui->est_fgShow->setPrecision(3);
-        ui->est_fgShow->setTickMarks(0.010, 2);
-        ui->est_fgShow->setBackgroundBrush(QColor(121,201,121));
-        ui->est_fgShow->setPreferredRangeBrush(QColor(0,127,0));
         ui->est_fgShow->setMarkerTextIsValue(true);
         ui->est_fgShow->setValue(query.value(29).toDouble());
 
 	ui->est_abvEdit->setValue(query.value(30).toDouble());
         ui->est_abvShow->setRange(query.value(19).toDouble(), query.value(20).toDouble());
         ui->est_abvShow->setPrecision(1);
-        ui->est_abvShow->setTickMarks(1.0, 2);
-        ui->est_abvShow->setBackgroundBrush(QColor(121,201,121));
-        ui->est_abvShow->setPreferredRangeBrush(QColor(0,127,0));
         ui->est_abvShow->setMarkerTextIsValue(true);
         ui->est_abvShow->setValue(query.value(30).toDouble());
 
 	ui->est_colorEdit->setValue(query.value(31).toDouble());
 	QColor color = Utils::ebc_to_color(query.value(31).toInt());
 	ui->est_colorGlass->setColor(color);
+        ui->est_colorShow->setPrecision(0);
+        ui->est_colorShow->setMarkerTextIsValue(true);
 	ui->est_colorShow->setRange(query.value(15).toDouble(), query.value(16).toDouble());
-        ui->est_colorShow->setPrecision(0);
-        ui->est_colorShow->setTickMarks(1.0, 2);
-        ui->est_colorShow->setBackgroundBrush(QColor(121,201,121));
-        ui->est_colorShow->setPreferredRangeBrush(QColor(0,127,0));
-        ui->est_colorShow->setMarkerTextIsValue(true);
         ui->est_colorShow->setValue(query.value(31).toDouble());
 
 	ui->color_methodEdit->addItem("Morey");

mercurial