44 #include "../qdeclarativeviewinspector_p.h" 46 #include <QtGui/QGraphicsItem> 48 #include <QtCore/QDebug> 54 : m_selectionRectangleElement(layerItem),
55 m_editorView(editorView),
56 m_beginFormEditorItem(0),
77 return itemList.
first();
120 newSelectionList.
append(item);
129 switch (selectionType) {
132 resultList.
append(newSelectionList);
136 resultList.
append(newSelectionList);
142 resultList.
append(oldSelectionSet.subtract(newSelectionSet).toList());
LiveRubberBandSelectionManipulator(QGraphicsObject *layerItem, QDeclarativeViewInspector *editorView)
QSet< T > toSet() const
Returns a QSet object with the data contained in this QList.
void setRect(const QPointF &firstPoint, const QPointF &secondPoint)
QDeclarativeViewInspector * m_editorView
void setItems(const QList< QGraphicsItem *> &itemList)
The QPointF class defines a point in the plane using floating point precision.
The QGraphicsItem class is the base class for all graphical items in a QGraphicsScene.
QList< QGraphicsItem * > selectedItems() const
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
void append(const T &t)
Inserts value at the end of the list.
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
QGraphicsItem * topFormEditorItem(const QList< QGraphicsItem *> &itemList)
void clear()
Removes all items from the list.
QList< QGraphicsItem * > selectableItems(const QPoint &pos) const
LiveSelectionRectangle m_selectionRectangleElement
void update(const QPointF &updatePoint)
T & first()
Returns a reference to the first item in the list.
void setSelectedItems(QList< QGraphicsItem *> items)
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
QGraphicsItem * m_beginFormEditorItem
QList< QGraphicsItem * > m_oldSelectionList
void select(SelectionType selectionType)
QList< QGraphicsItem * > m_itemList
The QGraphicsObject class provides a base class for all graphics items that require signals...
void begin(const QPointF &beginPoint)
QPointF beginPoint() const
static QDeclarativeViewInspectorPrivate * get(QDeclarativeViewInspector *v)
The QList class is a template class that provides lists.