summaryrefslogtreecommitdiffstats
path: root/src/variablelabel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/variablelabel.cpp
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/variablelabel.cpp')
-rw-r--r--src/variablelabel.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/variablelabel.cpp b/src/variablelabel.cpp
index a6a6ed1..f4b64b8 100644
--- a/src/variablelabel.cpp
+++ b/src/variablelabel.cpp
@@ -18,23 +18,23 @@
//BEGIN class VariableLabel
-VariableLabel::VariableLabel( TextView * parent )
- : QLabel( parent, "toolTipTip", WStyle_StaysOnTop | WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WX11BypassWM )
+VariableLabel::VariableLabel( TextView * tqparent )
+ : TQLabel( tqparent, "toolTipTip", WStyle_StaysOnTop | WStyle_Customize | WStyle_NoBorder | WStyle_Tool | WX11BypassWM )
{
m_value = -1;
setMargin(1);
setAutoMask( FALSE );
- setFrameStyle( QFrame::Plain | QFrame::Box );
+ setFrameStyle( TQFrame::Plain | TQFrame::Box );
setLineWidth( 1 );
- setAlignment( AlignAuto | AlignTop );
+ tqsetAlignment( AlignAuto | AlignTop );
setIndent(0);
polish();
adjustSize();
}
-void VariableLabel::setRegister( RegisterInfo * info, const QString & name )
+void VariableLabel::setRegister( RegisterInfo * info, const TQString & name )
{
disconnectRegisterInfo();
@@ -45,8 +45,8 @@ void VariableLabel::setRegister( RegisterInfo * info, const QString & name )
m_pRegisterInfo = info;
m_registerName = name;
- connect( m_pRegisterInfo, SIGNAL(destroyed()), this, SLOT(hide()) );
- connect( m_pRegisterInfo, SIGNAL(valueChanged(unsigned)), this, SLOT(updateText()) );
+ connect( m_pRegisterInfo, TQT_SIGNAL(destroyed()), this, TQT_SLOT(hide()) );
+ connect( m_pRegisterInfo, TQT_SIGNAL(valueChanged(unsigned)), this, TQT_SLOT(updateText()) );
updateText();
}
@@ -57,11 +57,11 @@ void VariableLabel::disconnectRegisterInfo()
if ( !m_pRegisterInfo )
return;
- disconnect( m_pRegisterInfo, SIGNAL(destroyed()), this, SLOT(hide()) );
- disconnect( m_pRegisterInfo, SIGNAL(valueChanged(unsigned)), this, SLOT(updateText()) );
+ disconnect( m_pRegisterInfo, TQT_SIGNAL(destroyed()), this, TQT_SLOT(hide()) );
+ disconnect( m_pRegisterInfo, TQT_SIGNAL(valueChanged(unsigned)), this, TQT_SLOT(updateText()) );
m_pRegisterInfo = 0l;
- m_registerName = QString::null;
+ m_registerName = TQString();
}
@@ -77,10 +77,10 @@ void VariableLabel::setValue( unsigned value )
void VariableLabel::updateText()
{
if ( m_pRegisterInfo )
- setText( QString("%1 = %2").arg( m_registerName ).arg( SymbolViewer::self()->toDisplayString( m_pRegisterInfo->value() ) ) );
+ setText( TQString("%1 = %2").tqarg( m_registerName ).tqarg( SymbolViewer::self()->toDisplayString( m_pRegisterInfo->value() ) ) );
else if ( m_value != -1 )
- setText( QString::number( m_value ) );
+ setText( TQString::number( m_value ) );
adjustSize();
}