summaryrefslogtreecommitdiffstats
path: root/src/kserialview.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 20:31:54 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 20:31:54 +0000
commit8f1624dd9a394be19ccf9d63e4de0a0558831ca3 (patch)
tree21ca6a6c0f51a294752e693bb883120ababb6062 /src/kserialview.h
parentff1242765ed5cce09ca185f874de5b05b08e109f (diff)
downloadkpicosim-8f1624dd9a394be19ccf9d63e4de0a0558831ca3.tar.gz
kpicosim-8f1624dd9a394be19ccf9d63e4de0a0558831ca3.zip
TQt4 port kpicosim
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpicosim@1238884 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) ;
};