[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Dec 19 04:53:37 CET 2003
CVS commit by staikos:
Remove unneeded checks, repair indenting
M +86 -100 kstplotdialog_i.cpp 1.26
--- kdeextragear-2/kst/kst/kstplotdialog_i.cpp #1.25:1.26
@@ -125,8 +125,5 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
KstPlotDialogI::~KstPlotDialogI() {
- if( SampleLabel != 0 )
- {
delete SampleLabel;
- }
SampleLabel = 0L;
}
@@ -468,6 +465,4 @@ void KstPlotDialogI::updateSampNumLabel(
p.setPen(Colors->foreground());
- if( SampleLabel != 0 )
- {
SampleLabel->setFontName(FontComboBox->currentText());
SampleLabel->setSize(NumberFontSize->value());
@@ -475,5 +470,4 @@ void KstPlotDialogI::updateSampNumLabel(
SampleLabel->draw(p,SampleNumLabel->width()/2,
SampleNumLabel->height()/2,true);
- }
SampleNumLabel->setPixmap(pix);
@@ -495,6 +489,4 @@ void KstPlotDialogI::updateSampTopLabel(
p.setPen(Colors->foreground());
- if( SampleLabel != 0 )
- {
SampleLabel->setFontName(FontComboBox->currentText());
SampleLabel->setSize(TopLabelFontSize->value());
@@ -502,5 +494,4 @@ void KstPlotDialogI::updateSampTopLabel(
SampleLabel->draw(p,SampleTopLabel->width()/2,
SampleTopLabel->height()/2,true);
- }
SampleTopLabel->setPixmap(pix);
@@ -519,6 +510,4 @@ void KstPlotDialogI::updateSampXLabel()
p.setPen(Colors->foreground());
- if( SampleLabel != 0 )
- {
SampleLabel->setFontName(FontComboBox->currentText());
SampleLabel->setSize(XLabelFontSize->value());
@@ -526,5 +515,4 @@ void KstPlotDialogI::updateSampXLabel()
SampleLabel->draw(p,SampleXLabel->width()/2,
SampleXLabel->height()/2,true);
- }
SampleXLabel->setPixmap(pix);
@@ -543,6 +531,4 @@ void KstPlotDialogI::updateSampYLabel()
p.setPen(Colors->foreground());
- if( SampleLabel != 0 )
- {
SampleLabel->setFontName(FontComboBox->currentText());
SampleLabel->setSize(YLabelFontSize->value());
@@ -550,5 +536,4 @@ void KstPlotDialogI::updateSampYLabel()
SampleLabel->draw(p,SampleYLabel->width()/2,
SampleYLabel->height()/2,true);
- }
SampleYLabel->setPixmap(pix);
@@ -610,2 +595,3 @@ void KstPlotDialogI::updateButtons() {
#include "kstplotdialog_i.moc"
+// vim: et ts=2 sw=2
More information about the Kst
mailing list