summaryrefslogtreecommitdiffstats
path: root/src/kserialview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kserialview.h')
-rwxr-xr-xsrc/kserialview.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/src/kserialview.h b/src/kserialview.h
index 1a21dbc..c474607 100755
--- a/src/kserialview.h
+++ b/src/kserialview.h
@@ -23,39 +23,40 @@
#include <ktoolbar.h>
#include <ktextedit.h>
#include <klineedit.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
-#include <qfont.h>
-#include <qpopupmenu.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
+#include <tqfont.h>
+#include <tqpopupmenu.h>
#include "kport.h"
class KSerialWindow : public KTextEdit
{
Q_OBJECT
+ TQ_OBJECT
public:
- KSerialWindow( QWidget *parent ) : KTextEdit( parent ) {
+ KSerialWindow( TQWidget *tqparent ) : KTextEdit( tqparent ) {
setWrapColumnOrWidth( 80 ) ; // Serial window is a terminal
- setWrapPolicy( QTextEdit::Anywhere ) ;
- setWordWrap( QTextEdit::FixedColumnWidth ) ;
+ setWrapPolicy( TQTextEdit::Anywhere ) ;
+ setWordWrap( TQTextEdit::FixedColumnWidth ) ;
setFont( KGlobalSettings::fixedFont() ) ; // Use default fixed font
}
virtual ~KSerialWindow() {} ;
protected:
- virtual void keyPressEvent( QKeyEvent *e )
+ virtual void keyPressEvent( TQKeyEvent *e )
{
emit keyPressed( e->ascii() ) ;
}
- virtual void mousePressEvent( QMouseEvent *e ) {
+ virtual void mousePressEvent( TQMouseEvent *e ) {
}
- virtual void mouseReleaseEvent( QMouseEvent *e ) {}
- virtual QPopupMenu *createPopupMenu( const QPoint &pos )
+ virtual void mouseReleaseEvent( TQMouseEvent *e ) {}
+ virtual TQPopupMenu *createPopupMenu( const TQPoint &pos )
{
- QPopupMenu *menu = new QPopupMenu( this ) ;
- menu->insertItem( "clear view", this, SLOT( clearView() ) ) ;
+ TQPopupMenu *menu = new TQPopupMenu( this ) ;
+ menu->insertItem( "clear view", this, TQT_SLOT( clearView() ) ) ;
return menu ;
}
public slots:
@@ -68,11 +69,12 @@ class KSerialWindow : public KTextEdit
} ;
-class KSerialView : public QWidget
+class KSerialView : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KSerialView( CPicoBlaze *cpu, QWidget *parent );
+ KSerialView( CPicoBlaze *cpu, TQWidget *tqparent );
~KSerialView();
KPort * rxPort, * txPort, * statusPort ;
@@ -95,15 +97,15 @@ class KSerialView : public QWidget
CPicoBlaze * m_cpu ;
KLineEdit *txPortID, *rxPortID, *statusPortID ;
- QCheckBox *m_statusBits[ 8 ] ;
+ TQCheckBox *m_statusBits[ 8 ] ;
- QColor m_backgroundColor ;
- QPushButton *m_clearButton ;
+ TQColor m_backgroundColor ;
+ TQPushButton *m_clearButton ;
public slots:
- void updateTxId( const QString & ) ;
- void updateRxId( const QString & ) ;
- void updateStatusId( const QString & ) ;
+ void updateTxId( const TQString & ) ;
+ void updateRxId( const TQString & ) ;
+ void updateStatusId( const TQString & ) ;
void txFlagsChanged( bool en ) ;
};