Fix a number of accidental tqStatus string conversions

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpicosim@1249829 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent bd18f7704e
commit 49eda0ff22

@ -158,7 +158,7 @@ KPicoSim::KPicoSim() : KMainWindow( 0, "KPicoSim" )
m_serialView = NULL ; m_serialView = NULL ;
statusBar()->insertItem( TQString( "Mode: Edit" ), 0 ) ; statusBar()->insertItem( TQString( "Mode: Edit" ), 0 ) ;
statusBar()->insertItem( TQString( "tqStatus: Stopped" ), 1 ) ; statusBar()->insertItem( TQString( "Status: Stopped" ), 1 ) ;
statusBar()->insertItem( TQString( "Instructions: 0" ), 2 ) ; statusBar()->insertItem( TQString( "Instructions: 0" ), 2 ) ;
m_templateFile = "" ; m_templateFile = "" ;
@ -424,14 +424,14 @@ void KPicoSim::startStop()
m_debugMenu->changeItem( RUN_ID, "Stop" ) ; m_debugMenu->changeItem( RUN_ID, "Stop" ) ;
m_editor->clearExecutionMarker() ; m_editor->clearExecutionMarker() ;
m_simulator->run() ; m_simulator->run() ;
statusBar()->changeItem( TQString( "tqStatus: Running" ), 1 ) ; statusBar()->changeItem( TQString( "Status: Running" ), 1 ) ;
m_debugBar->setButton( RUN_ID, true ) ; m_debugBar->setButton( RUN_ID, true ) ;
} else { } else {
m_simulator->stop() ; m_simulator->stop() ;
updateViews() ; updateViews() ;
m_debugMenu->changeItem( RUN_ID, "Continue" ) ; m_debugMenu->changeItem( RUN_ID, "Continue" ) ;
m_editor->setExecutionMarker( m_simulator->getNextSourceLine() ) ; m_editor->setExecutionMarker( m_simulator->getNextSourceLine() ) ;
statusBar()->changeItem( TQString( "tqStatus: Stopped" ), 1 ) ; statusBar()->changeItem( TQString( "Status: Stopped" ), 1 ) ;
TQString str ; TQString str ;
str.sprintf( "Instructions: %u", m_nrInstructions ) ; str.sprintf( "Instructions: %u", m_nrInstructions ) ;
statusBar()->changeItem( str, 2 ) ; statusBar()->changeItem( str, 2 ) ;

@ -59,7 +59,7 @@ KSerialView::KSerialView( CPicoBlaze *cpu, TQWidget * parent ) : TQWidget( paren
label->setFixedSize( 55, 18 ) ; label->setFixedSize( 55, 18 ) ;
label = new TQLabel( groupBox ) ; label = new TQLabel( groupBox ) ;
label->setText( "tqStatus" ) ; label->setText( "Status" ) ;
label->move( 5, 55 ) ; label->move( 5, 55 ) ;
label->setFixedSize( 55, 18 ) ; label->setFixedSize( 55, 18 ) ;
@ -87,7 +87,7 @@ KSerialView::KSerialView( CPicoBlaze *cpu, TQWidget * parent ) : TQWidget( paren
connect( rxPortID, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( updateRxId( const TQString & ) ) ) ; connect( rxPortID, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( updateRxId( const TQString & ) ) ) ;
connect( statusPortID, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( updateStatusId( const TQString & ) ) ) ; connect( statusPortID, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( updateStatusId( const TQString & ) ) ) ;
groupBox = new TQGroupBox( "tqStatus Register", settings ) ; groupBox = new TQGroupBox( "Status Register", settings ) ;
groupBox->setFixedSize( 200, 80 ) ; groupBox->setFixedSize( 200, 80 ) ;
groupBox->move( 250, 0 ) ; groupBox->move( 250, 0 ) ;

Loading…
Cancel
Save