summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator/qfunctionconfigurator.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-01 13:40:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-01 13:41:56 +0100
commit50104a86acbc20ba1854926a68349eae5459522a (patch)
tree761a437f58fbc6f2b70b98060d248936fb07c643 /qfunctionconfigurator/qfunctionconfigurator.cpp
parent3cc2032002cd5f5bf6523b0438d362ce991ece34 (diff)
base spline widget size on config size
Diffstat (limited to 'qfunctionconfigurator/qfunctionconfigurator.cpp')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp
index 4ad0a9a4..5a02a826 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -31,8 +31,7 @@ QFunctionConfigurator::QFunctionConfigurator(QWidget *parent)
//
// Defaults, for when the widget has no values different from the domXML()
//
- MaxInput = 50; // Maximum input limit
- MaxOutput = 180; // Maximum output limit
+
pPerEGU_Output = 1; // Number of pixels, per EGU
pPerEGU_Input = 4; // Number of pixels, per EGU
gDistEGU_Input = 5; // Distance of gridlines
@@ -74,6 +73,10 @@ void QFunctionConfigurator::setConfig(FunctionConfig* config, QString settingsFi
setCaption(config->getTitle());
_draw_function = _draw_background = true;
+
+ setmaxInputEGU(config->maxInput());
+ setmaxOutputEGU(config->maxOutput());
+
this->update();
}