summaryrefslogtreecommitdiffstats
path: root/src/kportview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kportview.cpp')
-rwxr-xr-xsrc/kportview.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/kportview.cpp b/src/kportview.cpp
index 7bf410e..f15a9a3 100755
--- a/src/kportview.cpp
+++ b/src/kportview.cpp
@@ -18,57 +18,57 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "kportview.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
-KPortView::KPortView( CPicoBlaze *cpu, QWidget *parent, const char *name)
- : KToolBar(parent, name)
+KPortView::KPortView( CPicoBlaze *cpu, TQWidget *tqparent, const char *name)
+ : KToolBar(tqparent, name)
{
m_cpu = cpu ;
- QWidget *widget = new QWidget( this ) ;
+ TQWidget *widget = new TQWidget( this ) ;
widget->setMinimumSize( 200, 65 ) ;
- QLabel *label = new QLabel( "ID", widget ) ;
+ TQLabel *label = new TQLabel( "ID", widget ) ;
label->move( 3, 0 ) ;
- label = new QLabel( "b7", widget ) ;
+ label = new TQLabel( "b7", widget ) ;
label->move( 32, 0 ) ;
- label = new QLabel( "b0", widget ) ;
+ label = new TQLabel( "b0", widget ) ;
label->move( 137, 0 ) ;
- label = new QLabel( "I", widget ) ;
+ label = new TQLabel( "I", widget ) ;
label->move( 160, 0 ) ;
- label = new QLabel( "O", widget ) ;
+ label = new TQLabel( "O", widget ) ;
label->move( 175, 0 ) ;
m_editID = new KLineEdit( widget ) ;
m_editID->setText( "0" ) ;
m_editID->setFixedSize( 30, 20 ) ;
m_editID->move( 2, 22 );
- connect( m_editID, SIGNAL( textChanged( const QString &) ), this, SLOT( setID( const QString &) ) ) ;
+ connect( m_editID, TQT_SIGNAL( textChanged( const TQString &) ), this, TQT_SLOT( setID( const TQString &) ) ) ;
int i ;
for ( i = 0 ; i < 8 ; i++ ) {
- m_bits[ i ] = new QCheckBox( widget ) ;
+ m_bits[ i ] = new TQCheckBox( widget ) ;
m_bits[ i ]->move( 35 + i * 15, 22 ) ;
}
- m_readable = new QCheckBox( widget ) ;
+ m_readable = new TQCheckBox( widget ) ;
m_readable->move( 160, 22 ) ;
- m_writeable = new QCheckBox( widget ) ;
+ m_writeable = new TQCheckBox( widget ) ;
m_writeable->move( 175, 22 ) ;
m_port = new KPort( 0 ) ;
m_cpu->addPort( m_port ) ;
- connect( m_port, SIGNAL( read() ), this, SLOT( read() ) ) ;
- connect( m_port, SIGNAL( write(unsigned char) ), this, SLOT( write(unsigned char) ) ) ;
- connect( m_readable, SIGNAL( toggled(bool) ), this, SLOT( readableToggled(bool) ) ) ;
- connect( m_writeable, SIGNAL( toggled(bool) ), this, SLOT( writeableToggled(bool) ) ) ;
+ connect( m_port, TQT_SIGNAL( read() ), this, TQT_SLOT( read() ) ) ;
+ connect( m_port, TQT_SIGNAL( write(unsigned char) ), this, TQT_SLOT( write(unsigned char) ) ) ;
+ connect( m_readable, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( readableToggled(bool) ) ) ;
+ connect( m_writeable, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( writeableToggled(bool) ) ) ;
setWidget( widget ) ;
setCloseMode( Always ) ;
@@ -88,14 +88,14 @@ KPortView::~KPortView()
m_cpu->deletePort( m_port ) ;
}
/*
-void KPortView::closeEvent ( QCloseEvent * e )
+void KPortView::closeEvent ( TQCloseEvent * e )
{
emit closing( this ) ;
}
*/
-void KPortView::setID( const QString &newID )
+void KPortView::setID( const TQString &newID )
{
- QString str ;
+ TQString str ;
bool ok ;
int id ;
@@ -106,7 +106,7 @@ void KPortView::setID( const QString &newID )
m_editID->setText( newID ) ;
m_editID->setBackgroundColor( m_backgroundColor ) ;
} else {
- m_editID->setBackgroundColor( QColor( 255, 128, 128 ) ) ;
+ m_editID->setBackgroundColor( TQColor( 255, 128, 128 ) ) ;
}
@@ -116,7 +116,7 @@ void KPortView::setID( const QString &newID )
}*/
}
-QString KPortView::id()
+TQString KPortView::id()
{
return m_editID->text() ;
}
@@ -159,20 +159,20 @@ void KPortView::writeableToggled( bool on )
m_port->setMode( mode ) ;
}
-void KPortView::readConfig( KSimpleConfig &config, QString group )
+void KPortView::readConfig( KSimpleConfig &config, TQString group )
{
config.setGroup( group ) ;
- int mode = config.readPropertyEntry( "Mode", QVariant::Int ).toInt() ;
+ int mode = config.readPropertyEntry( "Mode", TQVariant::Int ).toInt() ;
m_port->setMode( mode ) ;
m_readable->setChecked( (mode & PortReadable) != 0 ) ;
m_writeable->setChecked( (mode & PortWriteable ) != 0 ) ;
- QString id = config.readEntry( "Id" ) ;
+ TQString id = config.readEntry( "Id" ) ;
setID( id ) ;
}
-void KPortView::writeConfig( KSimpleConfig &config, QString group )
+void KPortView::writeConfig( KSimpleConfig &config, TQString group )
{
config.setGroup( group ) ;