summaryrefslogtreecommitdiffstats
path: root/src/libgui/editor.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/editor.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
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
Diffstat (limited to 'src/libgui/editor.h')
-rw-r--r--src/libgui/editor.h31
1 files changed, 16 insertions, 15 deletions
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 <qlabel.h>
-#include <qlayout.h>
-#include <qvaluevector.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqvaluevector.h>
#include "common/common/qflags.h"
#include <kstdaction.h>
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<uint> bookmarkLines() const = 0;
- virtual void setBookmarkLines(const QValueList<uint> &lines) = 0;
+ virtual TQValueList<uint> bookmarkLines() const = 0;
+ virtual void setBookmarkLines(const TQValueList<uint> &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