From 8f1624dd9a394be19ccf9d63e4de0a0558831ca3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 20:31:54 +0000 Subject: 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 --- src/codeeditor.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/codeeditor.h') diff --git a/src/codeeditor.h b/src/codeeditor.h index a3a57ce..06f905e 100755 --- a/src/codeeditor.h +++ b/src/codeeditor.h @@ -20,26 +20,27 @@ #ifndef CODEEDITOR_H #define CODEEDITOR_H -#include +#include #include #include #include -class CodeEditor : public QWidget +class CodeEditor : public TQWidget { Q_OBJECT + TQ_OBJECT public: - CodeEditor(QWidget *parent = 0, const char *name = 0); + CodeEditor(TQWidget *tqparent = 0, const char *name = 0); ~CodeEditor(); void clearExecutionMarker() ; void setExecutionMarker( unsigned int line ) ; - QString getFilename() ; + TQString getFilename() ; bool isBreakpoint( unsigned int line ) ; void setCursor( unsigned int line ) ; - void open( QString filename ) ; + void open( TQString filename ) ; bool close() ; bool save() ; @@ -50,7 +51,7 @@ class CodeEditor : public QWidget KStatusBar *m_statusBar ; unsigned int m_exeLine ; - QString m_filename ; + TQString m_filename ; bool m_bFilename ; void setHighlightMode() ; bool askSave() ; @@ -65,11 +66,11 @@ class CodeEditor : public QWidget }; - static const QPixmap* inactiveBreakpointPixmap(); - static const QPixmap* activeBreakpointPixmap(); - static const QPixmap* reachedBreakpointPixmap(); - static const QPixmap* disabledBreakpointPixmap(); - static const QPixmap* executionPointPixmap(); + static const TQPixmap* inactiveBreakpointPixmap(); + static const TQPixmap* activeBreakpointPixmap(); + static const TQPixmap* reachedBreakpointPixmap(); + static const TQPixmap* disabledBreakpointPixmap(); + static const TQPixmap* executionPointPixmap(); public slots: -- cgit v1.2.1