Commit 9a2b45cb authored by LAMBERT Jean-charles's avatar LAMBERT Jean-charles Committed by LAMBERT Jean-charles
Browse files

gcb factor value scientific notation input

parent 1016de15
......@@ -127,7 +127,13 @@ FormOptions::FormOptions(GlobalOptions * _go, QMutex * _mutex, QWidget *parent):
arg(go->gcb_color.green()).
arg(go->gcb_color.blue());
form.gcb_font_color->setStyleSheet(css);
QDoubleValidator * double_validator= new QDoubleValidator(this);
//double_validator->setBottom(0.00);
//double_validator->setDecimals(12);
//double_validator->setTop(100.00);
form.gcb_factor->setValidator( double_validator);
form.gcb_factor->setText("1");
// ----- auto screnshots tab
//form.radio_res_standard->clicked(true);
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
......
......@@ -23,6 +23,7 @@
#include <QMutex>
#include "ui_formoptions.h"
#include "globaloptions.h"
#include "QLocale"
namespace glnemo {
class FormOptions: public QDialog {
......@@ -332,8 +333,8 @@ class FormOptions: public QDialog {
emit update_gl();
}
// change physical quantity value factor
void on_gcb_factor_valueChanged(double value) {
go->gcb_factor = value;
void on_gcb_factor_returnPressed() {
go->gcb_factor = QLocale().toFloat(form.gcb_factor->text());
emit update_gl();
}
// legend name
......
This diff is collapsed.
......@@ -19,6 +19,6 @@
#define GLNEMO2_MAJOR "1"
#define GLNEMO2_MINOR "12"
#define GLNEMO2_PATCH "0"
#define GLNEMO2_EXTRA "-dev-22-oct-2018"
#define GLNEMO2_EXTRA "-dev-24-oct-2018"
#endif // VERSION_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment