equal
deleted
inserted
replaced
83 void updateLastCenterPoint(); |
83 void updateLastCenterPoint(); |
84 bool connectedToScene; |
84 bool connectedToScene; |
85 |
85 |
86 qint64 horizontalScroll() const; |
86 qint64 horizontalScroll() const; |
87 qint64 verticalScroll() const; |
87 qint64 verticalScroll() const; |
|
88 |
|
89 QRectF mapRectToScene(const QRect &rect) const; |
|
90 QRectF mapRectFromScene(const QRectF &rect) const; |
88 |
91 |
89 QPointF mousePressItemPoint; |
92 QPointF mousePressItemPoint; |
90 QPointF mousePressScenePoint; |
93 QPointF mousePressScenePoint; |
91 QPoint mousePressViewPoint; |
94 QPoint mousePressViewPoint; |
92 QPoint mousePressScreenPoint; |
95 QPoint mousePressScreenPoint; |
170 dirtyRegion = QRegion(); |
173 dirtyRegion = QRegion(); |
171 } |
174 } |
172 |
175 |
173 inline void dispatchPendingUpdateRequests() |
176 inline void dispatchPendingUpdateRequests() |
174 { |
177 { |
|
178 #ifndef Q_WS_MAC |
|
179 // QWidget::update() works slightly different on the Mac; it's not part of |
|
180 // our backing store so it needs special threatment. |
175 if (qt_widget_private(viewport)->paintOnScreen()) |
181 if (qt_widget_private(viewport)->paintOnScreen()) |
176 QCoreApplication::sendPostedEvents(viewport, QEvent::UpdateRequest); |
182 QCoreApplication::sendPostedEvents(viewport, QEvent::UpdateRequest); |
177 else |
183 else |
178 QCoreApplication::sendPostedEvents(viewport->window(), QEvent::UpdateRequest); |
184 QCoreApplication::sendPostedEvents(viewport->window(), QEvent::UpdateRequest); |
|
185 #else |
|
186 QCoreApplication::processEvents(QEventLoop::AllEvents | QEventLoop::ExcludeSocketNotifiers |
|
187 | QEventLoop::ExcludeUserInputEvents); |
|
188 #endif |
179 } |
189 } |
180 |
190 |
181 bool updateRect(const QRect &rect); |
191 bool updateRect(const QRect &rect); |
182 bool updateRegion(const QRegion ®ion); |
192 bool updateRegion(const QRegion ®ion); |
183 bool updateSceneSlotReimplementedChecked; |
193 bool updateSceneSlotReimplementedChecked; |