Changeset 561 for trunk/src/gui/graphicsview/qgraphicsscene.h
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/graphicsview/qgraphicsscene.h
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 84 84 class QGraphicsView; 85 85 class QGraphicsWidget; 86 class QGraphicsSceneIndex; 86 87 class QHelpEvent; 87 88 class QInputMethodEvent; … … 153 154 154 155 QList<QGraphicsItem *> items() const; 155 QList<QGraphicsItem *> items(const QPointF &pos) const; 156 QList<QGraphicsItem *> items(const QRectF &rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; 157 QList<QGraphicsItem *> items(const QPolygonF &polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; 158 QList<QGraphicsItem *> items(const QPainterPath &path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; 156 QList<QGraphicsItem *> items(Qt::SortOrder order) const; // ### Qt 5: unify 157 158 QList<QGraphicsItem *> items(const QPointF &pos, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform = QTransform()) const; 159 QList<QGraphicsItem *> items(const QRectF &rect, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform = QTransform()) const; 160 QList<QGraphicsItem *> items(const QPolygonF &polygon, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform = QTransform()) const; 161 QList<QGraphicsItem *> items(const QPainterPath &path, Qt::ItemSelectionMode mode, Qt::SortOrder order, const QTransform &deviceTransform = QTransform()) const; 162 163 QList<QGraphicsItem *> items(const QPointF &pos) const; // ### obsolete 164 QList<QGraphicsItem *> items(const QRectF &rect, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; // ### obsolete 165 QList<QGraphicsItem *> items(const QPolygonF &polygon, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; // ### obsolete 166 QList<QGraphicsItem *> items(const QPainterPath &path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; // ### obsolete 167 159 168 QList<QGraphicsItem *> collidingItems(const QGraphicsItem *item, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; 160 QGraphicsItem *itemAt(const QPointF &pos) const; 169 170 QGraphicsItem *itemAt(const QPointF &pos) const; // ### obsolete 171 QGraphicsItem *itemAt(const QPointF &pos, const QTransform &deviceTransform) const; 161 172 162 173 inline QList<QGraphicsItem *> items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const 163 { return items(QRectF(x, y, w, h), mode); } 164 inline QGraphicsItem *itemAt(qreal x, qreal y) const 174 { return items(QRectF(x, y, w, h), mode); } // ### obsolete 175 inline QList<QGraphicsItem *> items(qreal x, qreal y, qreal w, qreal h, Qt::ItemSelectionMode mode, Qt::SortOrder order, 176 const QTransform &deviceTransform = QTransform()) const 177 { return items(QRectF(x, y, w, h), mode, order, deviceTransform); } 178 inline QGraphicsItem *itemAt(qreal x, qreal y) const // ### obsolete 165 179 { return itemAt(QPointF(x, y)); } 180 inline QGraphicsItem *itemAt(qreal x, qreal y, const QTransform &deviceTransform) const 181 { return itemAt(QPointF(x, y), deviceTransform); } 166 182 167 183 QList<QGraphicsItem *> selectedItems() const; 168 184 QPainterPath selectionArea() const; 169 void setSelectionArea(const QPainterPath &path); 170 void setSelectionArea(const QPainterPath &path, Qt::ItemSelectionMode); 185 void setSelectionArea(const QPainterPath &path); // ### obsolete 186 void setSelectionArea(const QPainterPath &path, const QTransform &deviceTransform); 187 void setSelectionArea(const QPainterPath &path, Qt::ItemSelectionMode mode); // ### obsolete 188 void setSelectionArea(const QPainterPath &path, Qt::ItemSelectionMode mode, const QTransform &deviceTransform); 171 189 172 190 QGraphicsItemGroup *createItemGroup(const QList<QGraphicsItem *> &items); … … 190 208 { return addRect(QRectF(x, y, w, h), pen, brush); } 191 209 void removeItem(QGraphicsItem *item); 192 210 193 211 QGraphicsItem *focusItem() const; 194 212 void setFocusItem(QGraphicsItem *item, Qt::FocusReason focusReason = Qt::OtherFocusReason); … … 226 244 void setPalette(const QPalette &palette); 227 245 246 bool isActive() const; 247 QGraphicsItem *activePanel() const; 248 void setActivePanel(QGraphicsItem *item); 228 249 QGraphicsWidget *activeWindow() const; 229 250 void setActiveWindow(QGraphicsWidget *widget); 251 252 bool sendEvent(QGraphicsItem *item, QEvent *event); 230 253 231 254 public Q_SLOTS: … … 272 295 273 296 private: 274 void itemUpdated(QGraphicsItem *item, const QRectF &rect);275 276 297 Q_DECLARE_PRIVATE(QGraphicsScene) 277 298 Q_DISABLE_COPY(QGraphicsScene) 278 Q_PRIVATE_SLOT(d_func(), void _q_updateIndex())279 299 Q_PRIVATE_SLOT(d_func(), void _q_emitUpdated()) 280 Q_PRIVATE_SLOT(d_func(), void _q_removeItemLater(QGraphicsItem *item))281 Q_PRIVATE_SLOT(d_func(), void _q_updateLater())282 300 Q_PRIVATE_SLOT(d_func(), void _q_polishItems()) 283 Q_PRIVATE_SLOT(d_func(), void _q_ updateSortCache())284 Q_PRIVATE_SLOT(d_func(), void _q_ resetDirtyItems())301 Q_PRIVATE_SLOT(d_func(), void _q_processDirtyItems()) 302 Q_PRIVATE_SLOT(d_func(), void _q_updateScenePosDescendants()) 285 303 friend class QGraphicsItem; 286 304 friend class QGraphicsItemPrivate; … … 289 307 friend class QGraphicsWidget; 290 308 friend class QGraphicsWidgetPrivate; 309 friend class QGraphicsEffect; 310 friend class QGraphicsSceneIndex; 311 friend class QGraphicsSceneIndexPrivate; 312 friend class QGraphicsSceneBspTreeIndex; 313 friend class QGraphicsSceneBspTreeIndexPrivate; 314 friend class QGraphicsItemEffectSourcePrivate; 315 friend class QGesture; 291 316 }; 292 317
Note:
See TracChangeset
for help on using the changeset viewer.