diff options
Diffstat (limited to 'kalzium/src/somwidget_impl.cpp')
-rw-r--r-- | kalzium/src/somwidget_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kalzium/src/somwidget_impl.cpp b/kalzium/src/somwidget_impl.cpp index 54d078a8..c51eecbf 100644 --- a/kalzium/src/somwidget_impl.cpp +++ b/kalzium/src/somwidget_impl.cpp @@ -16,7 +16,7 @@ #include <tqlabel.h> #include <tqpair.h> #include <tqslider.h> -#include <tqtextedit.h> +#include <textedit.h> #include <tqvaluelist.h> #include <kdebug.h> @@ -35,7 +35,7 @@ SOMWidgetIMPL::SOMWidgetIMPL( TQWidget *parent, const char* name ) { m_list = KalziumDataObject::instance()->ElementList; - text->tqsetAlignment( text->tqalignment() | TQt::WordBreak ); + text->setAlignment( text->alignment() | TQt::WordBreak ); text->setTextFormat( TQt::RichText ); text->setReadOnly( true ); text->setPaletteBackgroundColor( paletteBackgroundColor() ); @@ -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 += " <b>·</b> " + i18n( "For example: Carbon (300K)", "%1 (%2)" ).tqarg( listMeltingPoint[i] ).tqarg( listMeltingPointValue[i] ) + "<br>"; + htmlcode += " <b>·</b> " + i18n( "For example: Carbon (300K)", "%1 (%2)" ).arg( listMeltingPoint[i] ).arg( 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 += " <b>·</b> " + i18n( "For example: Carbon (300K)", "%1 (%2)" ).tqarg( listBoilingPoint[i] ).tqarg( listBoilingPointValue[i] ) + "<br>"; + htmlcode += " <b>·</b> " + i18n( "For example: Carbon (300K)", "%1 (%2)" ).arg( listBoilingPoint[i] ).arg( listBoilingPointValue[i] ) + "<br>"; } htmlcode += "<br>"; } |