summaryrefslogtreecommitdiffstats
path: root/kalzium/src/somwidget_impl.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-13 11:49:24 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-19 11:12:48 +0900
commit845281400a4c6124e2cf8ab28174e9c3f0bc2895 (patch)
treefe2d221d237349ce9e1709802676323f747a4c66 /kalzium/src/somwidget_impl.cpp
parentb06213ed1ee55fef2ebc1de1d9759d8c9df5f4bd (diff)
downloadtdeedu-845281400a4c6124e2cf8ab28174e9c3f0bc2895.tar.gz
tdeedu-845281400a4c6124e2cf8ab28174e9c3f0bc2895.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 69e4de2f4cee257151ca13b207dc677b2d958fed)
Diffstat (limited to 'kalzium/src/somwidget_impl.cpp')
-rw-r--r--kalzium/src/somwidget_impl.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kalzium/src/somwidget_impl.cpp b/kalzium/src/somwidget_impl.cpp
index 93ae5838..dd6ac6bc 100644
--- a/kalzium/src/somwidget_impl.cpp
+++ b/kalzium/src/somwidget_impl.cpp
@@ -45,12 +45,12 @@ SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *parent, const char* name )
m_htmlEnd = "</qt>";
m_prevUnit = Prefs::temperature();
- connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( spinValueChanged( double ) ) );
- connect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
- this, TQT_SLOT( sliderValueChanged( int ) ) );
- connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( setNewTemp( double ) ) );
+ connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( spinValueChanged( double ) ) );
+ connect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
+ this, TQ_SLOT( sliderValueChanged( int ) ) );
+ connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( setNewTemp( double ) ) );
reloadUnits();
}
@@ -71,40 +71,40 @@ kdDebug() << "min: " << Number1->minValue() << " - max: " << Number1->maxValue()
void SOMWidgetIMPL::sliderValueChanged( int temp )
{
// TODO check if in TQt4 the RangeControl emits the signal again
- disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( spinValueChanged( double ) ) );
- disconnect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
- this, TQT_SLOT( sliderValueChanged( int ) ) );
- disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( setNewTemp( double ) ) );
+ disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( spinValueChanged( double ) ) );
+ disconnect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
+ this, TQ_SLOT( sliderValueChanged( int ) ) );
+ disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( setNewTemp( double ) ) );
double newvalue = TempUnit::convert( (double)temp, (int)TempUnit::Kelvin, Prefs::temperature() );
Number1->setValue( newvalue );
setNewTemp( newvalue );
- connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( spinValueChanged( double ) ) );
- connect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
- this, TQT_SLOT( sliderValueChanged( int ) ) );
- connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( setNewTemp( double ) ) );
+ connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( spinValueChanged( double ) ) );
+ connect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
+ this, TQ_SLOT( sliderValueChanged( int ) ) );
+ connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( setNewTemp( double ) ) );
}
void SOMWidgetIMPL::spinValueChanged( double temp )
{
- disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( spinValueChanged( double ) ) );
- disconnect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
- this, TQT_SLOT( sliderValueChanged( int ) ) );
- disconnect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( setNewTemp( double ) ) );
+ disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( spinValueChanged( double ) ) );
+ disconnect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
+ this, TQ_SLOT( sliderValueChanged( int ) ) );
+ disconnect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( setNewTemp( double ) ) );
int newvalue = (int)TempUnit::convert( temp, Prefs::temperature(), (int)TempUnit::Kelvin );
temp_slider->setValue( newvalue );
setNewTemp( temp );
- connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( spinValueChanged( double ) ) );
- connect( temp_slider, TQT_SIGNAL( valueChanged( int ) ),
- this, TQT_SLOT( sliderValueChanged( int ) ) );
- connect( Number1, TQT_SIGNAL( valueChanged( double ) ),
- this, TQT_SLOT( setNewTemp( double ) ) );
+ connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( spinValueChanged( double ) ) );
+ connect( temp_slider, TQ_SIGNAL( valueChanged( int ) ),
+ this, TQ_SLOT( sliderValueChanged( int ) ) );
+ connect( Number1, TQ_SIGNAL( valueChanged( double ) ),
+ this, TQ_SLOT( setNewTemp( double ) ) );
}
void SOMWidgetIMPL::setNewTemp( double newtemp )