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/editor.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/libgui/editor.h') diff --git a/src/libgui/editor.h b/src/libgui/editor.h index 9247c80..1a4c54d 100644 --- a/src/libgui/editor.h +++ b/src/libgui/editor.h @@ -9,28 +9,29 @@ #ifndef EDITOR_H #define EDITOR_H -#include -#include -#include +#include +#include +#include #include "common/common/qflags.h" #include class KPopupMenu; #include "common/global/purl.h" -class Editor : public QWidget +class Editor : public TQWidget { Q_OBJECT + TQ_OBJECT public: - Editor(const QString &title, const QString &tag, QWidget *parent, const char *name); - Editor(QWidget *parent, const char *name); - virtual QSizePolicy sizePolicy() const; + Editor(const TQString &title, const TQString &tag, TQWidget *tqparent, const char *name); + Editor(TQWidget *tqparent, const char *name); + virtual TQSizePolicy sizePolicy() const; virtual PURL::FileType fileType() const = 0; virtual bool isModified() const = 0; void setModified(bool modified); virtual PURL::Url url() const = 0; - QString name() const { return _title; } - QString tag() const { return _tag; } + TQString name() const { return _title; } + TQString tag() const { return _tag; } void setReadOnly(bool readOnly); virtual bool isReadOnly() const = 0; bool checkSaved(); @@ -40,8 +41,8 @@ public: virtual bool save(const PURL::Url &url) = 0; virtual void addGui() = 0; virtual void removeGui() = 0; - virtual QValueList bookmarkLines() const = 0; - virtual void setBookmarkLines(const QValueList &lines) = 0; + virtual TQValueList bookmarkLines() const = 0; + virtual void setBookmarkLines(const TQValueList &lines) = 0; public slots: bool slotLoad(); @@ -53,16 +54,16 @@ public slots: signals: void modified(); void guiChanged(); - void statusTextChanged(const QString &text); - void dropEventPass(QDropEvent *e); + void statusTextChanged(const TQString &text); + void dropEventPass(TQDropEvent *e); protected: - QString filename() const; + TQString filename() const; virtual void setModifiedInternal(bool modified) = 0; virtual void setReadOnlyInternal(bool readOnly) = 0; private: - QString _title, _tag; + TQString _title, _tag; }; #endif -- cgit v1.2.1