From c90c389a8a8d9d8661e9772ec4144c5cf2039f23 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kolf/object.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 kolf/object.h (limited to 'kolf/object.h') diff --git a/kolf/object.h b/kolf/object.h new file mode 100644 index 00000000..a2bf2ef1 --- /dev/null +++ b/kolf/object.h @@ -0,0 +1,30 @@ +// it seems that OBJECT_H is used by something else + +#ifndef KOLF_OBJECT_H +#define KOLF_OBJECT_H + +#include +#include +#include + +class Object : public QObject +{ + Q_OBJECT + +public: + Object(QObject *parent = 0, const char *name = 0) : QObject(parent, name) { m_addOnNewHole = false; } + virtual QCanvasItem *newObject(QCanvas * /*canvas*/) { return 0; } + QString name() { return m_name; } + QString _name() { return m__name; } + QString author() { return m_author; } + bool addOnNewHole() { return m_addOnNewHole; } + +protected: + QString m_name; + QString m__name; + QString m_author; + bool m_addOnNewHole; +}; +typedef QPtrList ObjectList; + +#endif -- cgit v1.2.1