From d7b94315e20a8b59818682bd1a3961d06022fd6f Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Tue, 4 Jul 2017 22:59:11 +0200 Subject: [PATCH] make seatplan adjustable in qt Change-Id: If8b2d7c207a494fcf83f5e174a08e953bebe4c6f --- iface/wext/MOSeatPlan | 1 + iface/wext/seatplanobj.h | 3 ++- iface/wext/seatplanobj2.h | 30 ++++++++++++++++++++++++++++++ iface/wext/wext.pri | 1 + wob/classes/seatplan.wolf | 1 + 5 files changed, 35 insertions(+), 1 deletions(-) create mode 100644 iface/wext/MOSeatPlan create mode 100644 iface/wext/seatplanobj2.h diff --git a/iface/wext/MOSeatPlan b/iface/wext/MOSeatPlan new file mode 100644 index 0000000..44bd090 --- /dev/null +++ b/iface/wext/MOSeatPlan @@ -0,0 +1 @@ +#include"seatplanobj2.h" diff --git a/iface/wext/seatplanobj.h b/iface/wext/seatplanobj.h index 27d7a76..46ba33f 100644 --- a/iface/wext/seatplanobj.h +++ b/iface/wext/seatplanobj.h @@ -4,7 +4,7 @@ // Description: removes abstract flag from classes that only need to be abstract in PHP // // -// Author: Konrad Rosenbaum , (C) 2009-2011 +// Author: Konrad Rosenbaum , (C) 2009-2017 // // Copyright: See README/COPYING.GPL files that come with this distribution // @@ -158,4 +158,5 @@ Q_DECLARE_METATYPE(MOSeatPlanVGroup) Q_DECLARE_METATYPE(QList) Q_DECLARE_METATYPE(Nullable) + #endif diff --git a/iface/wext/seatplanobj2.h b/iface/wext/seatplanobj2.h new file mode 100644 index 0000000..ababa62 --- /dev/null +++ b/iface/wext/seatplanobj2.h @@ -0,0 +1,30 @@ +// +// C++ Interface: unabstract +// +// Description: removes abstract flag from classes that only need to be abstract in PHP +// +// +// Author: Konrad Rosenbaum , (C) 2017 +// +// Copyright: See README/COPYING.GPL files that come with this distribution +// +// + +#ifndef MAGICSMOKE_MOSEATPLANOBJ2_H +#define MAGICSMOKE_MOSEATPLANOBJ2_H + +#include "MOSeatPlanAbstract" + +class MSIFACE_EXPORT MOSeatPlan:public MOSeatPlanAbstract +{ + Q_GADGET + WOBJECT(MOSeatPlan) + public: + void f(){} +}; + +Q_DECLARE_METATYPE(MOSeatPlan) +Q_DECLARE_METATYPE(QList) +Q_DECLARE_METATYPE(Nullable) + +#endif diff --git a/iface/wext/wext.pri b/iface/wext/wext.pri index 9fbbe7d..b59c2e2 100644 --- a/iface/wext/wext.pri +++ b/iface/wext/wext.pri @@ -12,6 +12,7 @@ HEADERS += \ wext/transaction.h \ wext/keyvalue.h \ wext/seatplanobj.h \ + wext/seatplanobj2.h \ wext/eventsaleinfo.h SOURCES += \ diff --git a/wob/classes/seatplan.wolf b/wob/classes/seatplan.wolf index f59fbd9..89a1d91 100644 --- a/wob/classes/seatplan.wolf +++ b/wob/classes/seatplan.wolf @@ -73,6 +73,7 @@ + This class is used to parse seat plans on either side. It is not sent over the wire, since it is just a helper class. -- 1.7.2.5