summaryrefslogtreecommitdiffstats
path: root/kalzium/src/somwidget_impl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kalzium/src/somwidget_impl.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalzium/src/somwidget_impl.cpp')
-rw-r--r--kalzium/src/somwidget_impl.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kalzium/src/somwidget_impl.cpp b/kalzium/src/somwidget_impl.cpp
index 6e3f4b71..a2b3da77 100644
--- a/kalzium/src/somwidget_impl.cpp
+++ b/kalzium/src/somwidget_impl.cpp
@@ -30,13 +30,13 @@
#include "prefs.h"
#include "tempunit.h"
-SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *parent, const char* name )
- : SOMWidget( parent,name )
+SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *tqparent, const char* name )
+ : SOMWidget( tqparent,name )
{
m_list = KalziumDataObject::instance()->ElementList;
- text->setAlignment( text->alignment() | Qt::WordBreak );
- text->setTextFormat( Qt::RichText );
+ text->tqsetAlignment( text->tqalignment() | TQt::WordBreak );
+ text->setTextFormat( TQt::RichText );
text->setReadOnly( true );
text->setPaletteBackgroundColor( paletteBackgroundColor() );
text->setFrameStyle( TQFrame::NoFrame );
@@ -58,7 +58,7 @@ SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *parent, const char* name )
void SOMWidgetIMPL::reloadUnits()
{
lblUnit->setText( TempUnit::unitListSymbol( Prefs::temperature() ) );
- QPair<double, double> range = TempUnit::rangeForUnit( Prefs::temperature() );
+ TQPair<double, double> range = TempUnit::rangeForUnit( Prefs::temperature() );
double newvalue = TempUnit::convert( Number1->value(), m_prevUnit, Prefs::temperature() );
Number1->setRange( range.first, range.second, 0.1, 1 );
@@ -70,7 +70,7 @@ kdDebug() << "min: " << Number1->minValue() << " - max: " << Number1->maxValue()
void SOMWidgetIMPL::sliderValueChanged( int temp )
{
-// TODO check if in Qt4 the RangeControl emits the signal again
+// 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 ) ),
@@ -139,7 +139,7 @@ void SOMWidgetIMPL::setNewTemp( double newtemp )
htmlcode += i18n( "Elements with melting point around this temperature:" ) + "<br>";
for ( uint i = 0; i < listMeltingPoint.count(); i++ )
{
- htmlcode += "&nbsp;<b>&middot;</b>&nbsp;" + i18n( "For example: Carbon (300K)", "%1 (%2)" ).arg( listMeltingPoint[i] ).arg( listMeltingPointValue[i] ) + "<br>";
+ htmlcode += "&nbsp;<b>&middot;</b>&nbsp;" + i18n( "For example: Carbon (300K)", "%1 (%2)" ).tqarg( listMeltingPoint[i] ).tqarg( listMeltingPointValue[i] ) + "<br>";
}
htmlcode += "<br>";
}
@@ -153,7 +153,7 @@ void SOMWidgetIMPL::setNewTemp( double newtemp )
htmlcode += i18n( "Elements with boiling point around this temperature:" ) + "<br>";
for ( uint i = 0; i < listBoilingPoint.count(); i++ )
{
- htmlcode += "&nbsp;<b>&middot;</b>&nbsp;" + i18n( "For example: Carbon (300K)", "%1 (%2)" ).arg( listBoilingPoint[i] ).arg( listBoilingPointValue[i] ) + "<br>";
+ htmlcode += "&nbsp;<b>&middot;</b>&nbsp;" + i18n( "For example: Carbon (300K)", "%1 (%2)" ).tqarg( listBoilingPoint[i] ).tqarg( listBoilingPointValue[i] ) + "<br>";
}
htmlcode += "<br>";
}