Qt 4.8
Functions
qdeclarativeitemsmodule.cpp File Reference
#include "private/qdeclarativeitemsmodule_p.h"
#include <QtGui/qaction.h>
#include <QtGui/qvalidator.h>
#include <QtGui/qgraphicseffect.h>
#include "private/qdeclarativeevents_p_p.h"
#include "private/qdeclarativescalegrid_p_p.h"
#include "private/qdeclarativeanimatedimage_p.h"
#include "private/qdeclarativeborderimage_p.h"
#include "private/qdeclarativepositioners_p.h"
#include "private/qdeclarativemousearea_p.h"
#include "private/qdeclarativeflickable_p.h"
#include "private/qdeclarativeflickable_p_p.h"
#include "private/qdeclarativeflipable_p.h"
#include "private/qdeclarativefocuspanel_p.h"
#include "private/qdeclarativefocusscope_p.h"
#include "private/qdeclarativegridview_p.h"
#include "private/qdeclarativeimage_p.h"
#include "private/qdeclarativeitem_p.h"
#include "private/qdeclarativelayoutitem_p.h"
#include "private/qdeclarativelistview_p.h"
#include "private/qdeclarativeloader_p.h"
#include "private/qdeclarativepath_p.h"
#include "private/qdeclarativepathview_p.h"
#include "private/qdeclarativerectangle_p.h"
#include "private/qdeclarativerepeater_p.h"
#include "private/qdeclarativetranslate_p.h"
#include "private/qdeclarativetext_p.h"
#include "private/qdeclarativetextedit_p.h"
#include "private/qdeclarativetextinput_p.h"
#include "private/qdeclarativevisualitemmodel_p.h"
#include "private/qdeclarativegraphicswidget_p.h"
#include "private/qdeclarativeanchors_p.h"
#include "private/qdeclarativepincharea_p.h"

Go to the source code of this file.

Functions

static QDeclarativePrivate::AutoParentResult qgraphicsobject_autoParent (QObject *obj, QObject *parent)
 

Function Documentation

◆ qgraphicsobject_autoParent()

static QDeclarativePrivate::AutoParentResult qgraphicsobject_autoParent ( QObject obj,
QObject parent 
)
static

Definition at line 83 of file qdeclarativeitemsmodule.cpp.

Referenced by QDeclarativeItemModule::defineModule().

84 {
86  if (!gobj)
88 
89  QGraphicsObject* gparent = qobject_cast<QGraphicsObject*>(parent);
90  if (!gparent)
92 
93  gobj->setParentItem(gparent);
95 }
void setParentItem(QGraphicsItem *parent)
Sets this item&#39;s parent item to newParent.
T * qobject_cast(QObject *object)
Definition: qobject.h:375
The QGraphicsObject class provides a base class for all graphics items that require signals...