From 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 30 Jun 2011 00:15:53 +0000 Subject: TQt4 port piklab This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/libgui/text_editor.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'src/libgui/text_editor.h') diff --git a/src/libgui/text_editor.h b/src/libgui/text_editor.h index 9c5a994..5b76734 100644 --- a/src/libgui/text_editor.h +++ b/src/libgui/text_editor.h @@ -10,9 +10,9 @@ #ifndef TEXT_EDITOR_H #define TEXT_EDITOR_H -#include -#include -class QSplitter; +#include +#include +class TQSplitter; #include #include @@ -25,8 +25,9 @@ class QSplitter; class TextEditor : public Editor { Q_OBJECT + TQ_OBJECT public: - TextEditor(bool withDebugger, QWidget *parent, const char *name = 0); + TextEditor(bool withDebugger, TQWidget *tqparent, const char *name = 0); virtual PURL::FileType fileType() const { return url().fileType(); } virtual PURL::Url url() const { return _document->url(); } virtual bool isModified() const; @@ -34,16 +35,16 @@ public: virtual void addGui(); virtual void removeGui(); virtual void setFocus() { _view->setFocus(); } - static QPixmap pixmap(Breakpoint::MarkType type); + static TQPixmap pixmap(Breakpoint::MarkType type); void setMark(uint line, Breakpoint::MarkType type); void clearBreakpointMarks(); void setCursor(uint line, uint column) { _view->setCursorPosition(line, column); } uint cursorLine() const; virtual bool open(const PURL::Url &url); virtual bool save(const PURL::Url &url) { return _document->saveAs(url.kurl()); } - virtual bool eventFilter(QObject *o, QEvent *e); - virtual QValueList bookmarkLines() const; - virtual void setBookmarkLines(const QValueList &lines); + virtual bool eventFilter(TQObject *o, TQEvent *e); + virtual TQValueList bookmarkLines() const; + virtual void setBookmarkLines(const TQValueList &lines); public slots: void addView(); @@ -64,7 +65,7 @@ private slots: void addToDebugManager(); private: - QSplitter *_split; + TQSplitter *_split; bool _oldModified, _oldReadOnly; struct MarkTypeData { uint type; @@ -75,7 +76,7 @@ private: private: virtual void setModifiedInternal(bool modified); virtual void setReadOnlyInternal(bool readOnly); - uint highlightMode(const QString &name) const; + uint highlightMode(const TQString &name) const; void clearMarks(uint type); }; @@ -83,12 +84,13 @@ private: class SimpleTextEditor : public TextEditor { Q_OBJECT + TQ_OBJECT public: - SimpleTextEditor(bool withDebugger, PURL::FileType type, QWidget *parent, const char *name = 0); - SimpleTextEditor(bool withDebugger, QWidget *parent, const char *name = 0); + SimpleTextEditor(bool withDebugger, PURL::FileType type, TQWidget *tqparent, const char *name = 0); + SimpleTextEditor(bool withDebugger, TQWidget *tqparent, const char *name = 0); void setFileType(PURL::FileType type) { _type = type; } virtual PURL::FileType fileType() const { return _type; } - bool setText(const QString &text); + bool setText(const TQString &text); virtual bool open(const PURL::Url &url); protected: -- cgit v1.2.1