| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #ifndef QQUICKWIDGET_P_H | - |
| 41 | #define QQUICKWIDGET_P_H | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | | - |
| 47 | | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | #include "qquickwidget.h" | - |
| 55 | #include <private/qwidget_p.h> | - |
| 56 | | - |
| 57 | #include <QtCore/qurl.h> | - |
| 58 | #include <QtCore/qelapsedtimer.h> | - |
| 59 | #include <QtCore/qtimer.h> | - |
| 60 | #include <QtCore/qpointer.h> | - |
| 61 | #include <QtCore/QWeakPointer> | - |
| 62 | | - |
| 63 | #include <QtQml/qqmlengine.h> | - |
| 64 | | - |
| 65 | #include "private/qquickitemchangelistener_p.h" | - |
| 66 | | - |
| 67 | QT_BEGIN_NAMESPACE | - |
| 68 | | - |
| 69 | class QQmlContext; | - |
| 70 | class QQmlError; | - |
| 71 | class QQuickItem; | - |
| 72 | class QQmlComponent; | - |
| 73 | class QQuickRenderControl; | - |
| 74 | class QOpenGLContext; | - |
| 75 | class QOffscreenSurface; | - |
| 76 | | - |
| 77 | class QQuickWidgetPrivate | - |
| 78 | : public QWidgetPrivate, | - |
| 79 | public QQuickItemChangeListener | - |
| 80 | { | - |
| 81 | Q_DECLARE_PUBLIC(QQuickWidget) | - |
| 82 | public: | - |
| 83 | static QQuickWidgetPrivate* get(QQuickWidget *view) { return view->d_func(); } never executed: return view->d_func(); | 0 |
| 84 | static const QQuickWidgetPrivate* get(const QQuickWidget *view) { return view->d_func(); } never executed: return view->d_func(); | 0 |
| 85 | | - |
| 86 | QQuickWidgetPrivate(); | - |
| 87 | ~QQuickWidgetPrivate(); | - |
| 88 | | - |
| 89 | void execute(); | - |
| 90 | void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override; | - |
| 91 | void initResize(); | - |
| 92 | void updateSize(); | - |
| 93 | void updatePosition(); | - |
| 94 | void updateFrambufferObjectSize(); | - |
| 95 | void setRootObject(QObject *); | - |
| 96 | void render(bool needsSync); | - |
| 97 | void renderSceneGraph(); | - |
| 98 | void createContext(); | - |
| 99 | void destroyContext(); | - |
| 100 | void handleContextCreationFailure(const QSurfaceFormat &format, bool isEs); | - |
| 101 | | - |
| 102 | #if QT_CONFIG(opengl) | - |
| 103 | GLuint textureId() const override; | - |
| 104 | QImage grabFramebuffer() override; | - |
| 105 | #else | - |
| 106 | QImage grabFramebuffer(); | - |
| 107 | #endif | - |
| 108 | | - |
| 109 | void init(QQmlEngine* e = 0); | - |
| 110 | void ensureEngine() const; | - |
| 111 | void handleWindowChange(); | - |
| 112 | void invalidateRenderControl(); | - |
| 113 | | - |
| 114 | QSize rootObjectSize() const; | - |
| 115 | | - |
| 116 | QPointer<QQuickItem> root; | - |
| 117 | | - |
| 118 | QUrl source; | - |
| 119 | | - |
| 120 | mutable QPointer<QQmlEngine> engine; | - |
| 121 | QQmlComponent *component; | - |
| 122 | QBasicTimer resizetimer; | - |
| 123 | QQuickWindow *offscreenWindow; | - |
| 124 | QOffscreenSurface *offscreenSurface; | - |
| 125 | QQuickRenderControl *renderControl; | - |
| 126 | | - |
| 127 | #if QT_CONFIG(opengl) | - |
| 128 | QOpenGLFramebufferObject *fbo; | - |
| 129 | QOpenGLFramebufferObject *resolvedFbo; | - |
| 130 | QOpenGLContext *context; | - |
| 131 | #endif | - |
| 132 | | - |
| 133 | QQuickWidget::ResizeMode resizeMode; | - |
| 134 | QSize initialSize; | - |
| 135 | QElapsedTimer frameTimer; | - |
| 136 | | - |
| 137 | QBasicTimer updateTimer; | - |
| 138 | bool eventPending; | - |
| 139 | bool updatePending; | - |
| 140 | bool fakeHidden; | - |
| 141 | | - |
| 142 | int requestedSamples; | - |
| 143 | | - |
| 144 | bool useSoftwareRenderer; | - |
| 145 | QImage softwareImage; | - |
| 146 | QRegion updateRegion; | - |
| 147 | bool forceFullUpdate; | - |
| 148 | }; | - |
| 149 | | - |
| 150 | QT_END_NAMESPACE | - |
| 151 | | - |
| 152 | #endif // QQuickWidget_P_H | - |
| | |