[Kst] branches/work/kst/1.5/kst/src/widgets
Andrew Walker
arwalker at sumusltd.com
Fri Jul 27 22:50:32 CEST 2007
SVN commit 693386 by arwalker:
make code more robust to later changes in window function order
M +1 -0 fftoptionswidget.ui
M +6 -1 fftoptionswidget.ui.h
--- branches/work/kst/1.5/kst/src/widgets/fftoptionswidget.ui #693385:693386
@@ -505,6 +505,7 @@
<include location="global" impldecl="in implementation">kmessagebox.h</include>
<include location="local" impldecl="in implementation">kstobjectdefaults.h</include>
<include location="global" impldecl="in declaration">kst_export.h</include>
+ <include location="global" impldecl="in implementation">psdcalculator.h</include>
<include location="local" impldecl="in implementation">fftoptionswidget.ui.h</include>
</includes>
<slots>
--- branches/work/kst/1.5/kst/src/widgets/fftoptionswidget.ui.h #693385:693386
@@ -34,10 +34,15 @@
}
void KstFFTOptions::changedApodizeFxn() {
- int gaussianIndex = 5;
+ int gaussianIndex = WindowGaussian;
+
+ //
+ // if the first entry is empty then we are in edit multiple mode...
+ //
if (ApodizeFxn->text(0).isEmpty()) {
++gaussianIndex;
}
+
Sigma->setEnabled(ApodizeFxn->currentItem() == gaussianIndex && Apodize->isChecked());
}
More information about the Kst
mailing list