diff options
Diffstat (limited to 'src/variablelabel.cpp')
-rw-r--r-- | src/variablelabel.cpp | 24 |
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(); } |