From c8e3d1d47df0efdc66fe6b96f8b1c78a2cb18ee6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 6 Nov 2023 11:38:51 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- kalzium/src/periodictableview.cpp | 2 +- kalzium/src/spectrumwidget.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'kalzium') diff --git a/kalzium/src/periodictableview.cpp b/kalzium/src/periodictableview.cpp index d1e20339..94d32575 100644 --- a/kalzium/src/periodictableview.cpp +++ b/kalzium/src/periodictableview.cpp @@ -417,7 +417,7 @@ void PerodicTableView::paintCurrentSelection() p.begin(table); TQPen pen; - pen.setStyle( Qt::DotLine ); + pen.setStyle( TQt::DotLine ); pen.setWidth( 4 ); pen.setColor( TQt::blue ); p.setPen( pen ); diff --git a/kalzium/src/spectrumwidget.cpp b/kalzium/src/spectrumwidget.cpp index 88355a1c..66bfce27 100644 --- a/kalzium/src/spectrumwidget.cpp +++ b/kalzium/src/spectrumwidget.cpp @@ -320,9 +320,9 @@ void SpectrumWidget::mouseMoveEvent( TQMouseEvent *e ) void SpectrumWidget::mousePressEvent( TQMouseEvent *e ) { - if ( e->button() == Qt::LeftButton ) + if ( e->button() == TQt::LeftButton ) m_LMBPointPress = e->pos(); - if ( e->button() == Qt::RightButton ) + if ( e->button() == TQt::RightButton ) slotZoomOut(); //FIXME //the tooltip is not really working. Better to not have it @@ -391,7 +391,7 @@ void SpectrumWidget::drawTooltip( TQPainter *p ) void SpectrumWidget::mouseReleaseEvent( TQMouseEvent *e ) { - if ( e->button() == Qt::LeftButton ) + if ( e->button() == TQt::LeftButton ) { int left = (int)Wavelength( ( double )m_LMBPointPress.x()/width() ); int right = (int)Wavelength( ( double )e->pos().x()/width() ); -- cgit v1.2.1