[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Fri Jun 4 18:40:30 CEST 2004
CVS commit by arwalker:
Style changes
M +22 -19 ksthsdialog_i.cpp 1.45
--- kdeextragear-2/kst/kst/ksthsdialog_i.cpp #1.44:1.45
@@ -198,8 +198,13 @@ void KstHsDialogI::update(int new_index)
Max->setText(QString::number(hs->maxX()));
- if (hs->isNormPercent()) NormIsPercent->setChecked(true);
- else if (hs->isNormFraction()) NormIsFraction->setChecked(true);
- else if (hs->isNormOne()) PeakIs1->setChecked(true);
- else NormIsNumber->setChecked(true);
+ if (hs->isNormPercent()) {
+ NormIsPercent->setChecked(true);
+ } else if (hs->isNormFraction()) {
+ NormIsFraction->setChecked(true);
+ } else if (hs->isNormOne()) {
+ PeakIs1->setChecked(true);
+ } else {
+ NormIsNumber->setChecked(true);
+ }
} else {
Delete->setEnabled(false);
@@ -386,6 +391,5 @@ void KstHsDialogI::delete_I() {
if (c) {
Kst2DPlotList plots = c->view()->findChildrenType<Kst2DPlot>();
- for (Kst2DPlotList::Iterator i = plots.begin(); i != plots.end(); ++i
-) {
+ for (Kst2DPlotList::Iterator i = plots.begin(); i != plots.end(); ++i) {
Kst2DPlotPtr plot = *i;
for (int i_curve = 0; i_curve < (int)plot->Curves.count(); ++i_curve) {
@@ -415,7 +419,5 @@ void KstHsDialogI::autoBin() {
int n;
- if (KST::vectorList.count() < 1)
- return;
-
+ if (KST::vectorList.count() > 0) {
/* find *V */
KstVectorList::Iterator i = KST::vectorList.findTag(_vector->selectedVector());
@@ -430,4 +432,5 @@ void KstHsDialogI::autoBin() {
Min->setText(QString::number(min));
Max->setText(QString::number(max));
+ }
}
More information about the Kst
mailing list