summaryrefslogtreecommitdiffstats
path: root/kalzium/src/spectrumwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:47:17 -0600
commit6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (patch)
treecc90a09df2d1fd6d956cc084529a62d354316ad3 /kalzium/src/spectrumwidget.cpp
parent174fd5e23c68598774706ea9b571d3d178e36b81 (diff)
downloadtdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.tar.gz
tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kalzium/src/spectrumwidget.cpp')
-rw-r--r--kalzium/src/spectrumwidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kalzium/src/spectrumwidget.cpp b/kalzium/src/spectrumwidget.cpp
index 8dff10e3..bc0d2af1 100644
--- a/kalzium/src/spectrumwidget.cpp
+++ b/kalzium/src/spectrumwidget.cpp
@@ -57,7 +57,7 @@ SpectrumWidget::SpectrumWidget( TQWidget *parent, const char* name ) : TQWidget(
setType( EmissionSpectrum );
setMinimumSize( 400, 230 );
- tqsetSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
+ setSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding );
setBackgroundMode( NoBackground );
}
@@ -70,7 +70,7 @@ void SpectrumWidget::paintEvent( TQPaintEvent * /*e*/ )
m_pixmap.fill( this, width(), height() );
TQPainter p;
- p.tqbegin( &m_pixmap, this );
+ p.begin( &m_pixmap, this );
p.fillRect( 0, 0, width(), m_realHeight, TQt::black );
paintBands( &p );
@@ -378,15 +378,15 @@ void SpectrumWidget::drawTooltip( TQPainter *p )
{
p->setPen( TQt::white );
TQPoint pt = mapFromGlobal( TQCursor::pos() );
- p->drawText( pt, i18n("Wavelength: %1").tqarg(m_band.wavelength) );
+ p->drawText( pt, i18n("Wavelength: %1").arg(m_band.wavelength) );
pt.setY( pt.y() + 15 );
- p->drawText( pt, i18n("Intensity: %1").tqarg(m_band.intensity) );
+ p->drawText( pt, i18n("Intensity: %1").arg(m_band.intensity) );
pt.setY( pt.y() + 15 );
- p->drawText( pt, i18n("Energy 1, Energy 2: %1, %2").tqarg(m_band.energy1).tqarg( m_band.energy2 ));
+ p->drawText( pt, i18n("Energy 1, Energy 2: %1, %2").arg(m_band.energy1).arg( m_band.energy2 ));
pt.setY( pt.y() + 15 );
- p->drawText( pt, i18n("Term 1, Term 2: %1, %2").tqarg(m_band.term1).tqarg( m_band.term2 ));
+ p->drawText( pt, i18n("Term 1, Term 2: %1, %2").arg(m_band.term1).arg( m_band.term2 ));
pt.setY( pt.y() + 15 );
- p->drawText( pt, i18n("J 1, J 2: %1, %2").tqarg(m_band.J1).tqarg( m_band.J2 ));
+ p->drawText( pt, i18n("J 1, J 2: %1, %2").arg(m_band.J1).arg( m_band.J2 ));
}
void SpectrumWidget::mouseReleaseEvent( TQMouseEvent *e )
@@ -415,9 +415,9 @@ TQPixmap SpectrumWidget::pixmap()
TQString text;
if( m_type == EmissionSpectrum )
- text = i18n( "Emission spectrum of %1" ).tqarg( m_spectrum->parentElement()->elname() );
+ text = i18n( "Emission spectrum of %1" ).arg( m_spectrum->parentElement()->elname() );
else
- text = i18n( "Absorption spectrum of %1" ).tqarg( m_spectrum->parentElement()->elname() );
+ text = i18n( "Absorption spectrum of %1" ).arg( m_spectrum->parentElement()->elname() );
TQPainter p( &tmp );
p.setPen( TQt::black );