From: Martin Pfeiffer Date: Sun, 17 Jul 2005 22:23:38 +0000 (+0000) Subject: two bugs found, still bug in SpectrumWidget::paintTickmarkets() X-Git-Tag: v3.80.2~300^2~55 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=77b0f1d025e7e10d0494b050bd4fca817fe9f8ce;p=libqmvoc.git two bugs found, still bug in SpectrumWidget::paintTickmarkets() svn path=/trunk/KDE/kdeedu/kalzium/src/spectrum.cpp; revision=435709 --- diff --git a/kalzium/src/spectrum.cpp b/kalzium/src/spectrum.cpp index 4818d67..2893620 100644 --- a/kalzium/src/spectrum.cpp +++ b/kalzium/src/spectrum.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -76,6 +77,7 @@ void Spectrum::paintBands( QPainter* p, double startValue, double endValue, bool it != m_bandlist.end(); ++it ) { + kdDebug() << "band gemalt" << endl; if ( ( *it ).wavelength < startValue || ( *it ).wavelength > endValue ) continue; @@ -107,6 +109,7 @@ void Spectrum::paintBands( QPainter* p, double startValue, double endValue, bool i++; } + kdDebug() << "fertig" << endl; } SpectrumWidget::SpectrumWidget( QWidget* parent, const char* name ) @@ -175,6 +178,7 @@ QColor Spectrum::linecolor( double spectrum ) void SpectrumWidget::drawTickmarks( QPainter* p ) { + kdDebug() << "tickmarks" << endl; const int space = 13; /* for ( int i = 0; i < width() ; i+=10 ) @@ -290,6 +294,7 @@ SpectrumView::SpectrumView( Spectrum *spec, QWidget *parent, const char* name ) QVBoxLayout *spectrumLayout = new QVBoxLayout( this ); m_spectrumWidget = new SpectrumWidget( this, "spectrum" ); + m_spectrumWidget->setSpectrum( m_spectrum ); m_spectrumWidget->setBorders( spec->min(), spec->max() ); spectrumLayout->addWidget( m_spectrumWidget );