23 #if defined (HAVE_CONFIG_H) 38 :
QObject (), m_go (go), m_handle (go.get_handle ()), m_qobject (nullptr)
43 qCritical (
"QtHandles::Object::Object: " 44 "creating Object (h=%g) without a valid lock!!!",
54 qCritical (
"QtHandles::Object::init: " 55 "resetting QObject while in invalid state");
61 m_qobject->setProperty (
"QtHandles::Object",
62 qVariantFromValue<void*> (
this));
77 qCritical (
"QtHandles::Object::object: " 78 "accessing graphics object (h=%g) without a valid lock!!!",
94 case base_properties::ID_BEINGDELETED:
99 if (
object ().valid_object ())
118 if (
object ().valid_object ())
127 if (
object ().valid_object ())
128 print (file_cmd, term);
178 QVariant v = obj->property (
"QtHandles::Object");
181 return reinterpret_cast<Object *> (qvariant_cast<void*> (v));
virtual void redraw(void)
static Object * parentObject(const graphics_object &go)
void init(QObject *obj, bool callBase=false)
static Object * fromQObject(QObject *obj)
virtual void beingDeleted(void)
graphics_object object(void) const
graphics_handle get_parent(void) const
virtual void finalize(void)
static Object * toolkitObject(const graphics_object &go)
Object(const graphics_object &go, QObject *obj=nullptr)
virtual void update(int pId)
void objectDestroyed(QObject *obj=nullptr)
virtual void print(const QString &file_cmd, const QString &term)
static graphics_object get_object(double val)
void slotPrint(const QString &file_cmd, const QString &term)