Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/designer/qquickdesignerwindowmanager.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | - | |||||||
5 | - | |||||||
6 | QQuickDesignerWindowManager::QQuickDesignerWindowManager() | - | ||||||
7 | : m_sgContext(QSGContext::createDefaultContext()) | - | ||||||
8 | { | - | ||||||
9 | m_renderContext.reset(m_sgContext.data()->createRenderContext()); | - | ||||||
10 | } never executed: end of block | 0 | ||||||
11 | - | |||||||
12 | void QQuickDesignerWindowManager::show(QQuickWindow *window) | - | ||||||
13 | { | - | ||||||
14 | makeOpenGLContext(window); | - | ||||||
15 | } never executed: end of block | 0 | ||||||
16 | - | |||||||
17 | void QQuickDesignerWindowManager::hide(QQuickWindow *) | - | ||||||
18 | { | - | ||||||
19 | } | - | ||||||
20 | - | |||||||
21 | void QQuickDesignerWindowManager::windowDestroyed(QQuickWindow *) | - | ||||||
22 | { | - | ||||||
23 | } | - | ||||||
24 | - | |||||||
25 | void QQuickDesignerWindowManager::makeOpenGLContext(QQuickWindow *window) | - | ||||||
26 | { | - | ||||||
27 | - | |||||||
28 | if (!m_openGlContext
| 0 | ||||||
29 | m_openGlContext.reset(new QOpenGLContext()); | - | ||||||
30 | m_openGlContext->setFormat(window->requestedFormat()); | - | ||||||
31 | m_openGlContext->create(); | - | ||||||
32 | if (!m_openGlContext->makeCurrent(window)
| 0 | ||||||
33 | QMessageLogger(__FILE__, 76, __PRETTY_FUNCTION__).warning("QQuickWindow: makeCurrent() failed..."); never executed: QMessageLogger(__FILE__, 76, __PRETTY_FUNCTION__).warning("QQuickWindow: makeCurrent() failed..."); | 0 | ||||||
34 | m_renderContext->initialize(m_openGlContext.data()); | - | ||||||
35 | } never executed: else {end of block | 0 | ||||||
36 | m_openGlContext->makeCurrent(window); | - | ||||||
37 | } never executed: end of block | 0 | ||||||
38 | - | |||||||
39 | - | |||||||
40 | - | |||||||
41 | } | - | ||||||
42 | - | |||||||
43 | void QQuickDesignerWindowManager::exposureChanged(QQuickWindow *) | - | ||||||
44 | { | - | ||||||
45 | } | - | ||||||
46 | - | |||||||
47 | QImage QQuickDesignerWindowManager::grab(QQuickWindow *) | - | ||||||
48 | { | - | ||||||
49 | return never executed: QImage();return QImage(); never executed: return QImage(); | 0 | ||||||
50 | } | - | ||||||
51 | - | |||||||
52 | void QQuickDesignerWindowManager::maybeUpdate(QQuickWindow *) | - | ||||||
53 | { | - | ||||||
54 | } | - | ||||||
55 | - | |||||||
56 | QSGContext *QQuickDesignerWindowManager::sceneGraphContext() const | - | ||||||
57 | { | - | ||||||
58 | return never executed: m_sgContext.data();return m_sgContext.data(); never executed: return m_sgContext.data(); | 0 | ||||||
59 | } | - | ||||||
60 | - | |||||||
61 | void QQuickDesignerWindowManager::createOpenGLContext(QQuickWindow *window) | - | ||||||
62 | { | - | ||||||
63 | window->create(); | - | ||||||
64 | window->update(); | - | ||||||
65 | } never executed: end of block | 0 | ||||||
66 | - | |||||||
67 | void QQuickDesignerWindowManager::update(QQuickWindow *window) | - | ||||||
68 | { | - | ||||||
69 | makeOpenGLContext(window); | - | ||||||
70 | } never executed: end of block | 0 | ||||||
71 | - | |||||||
72 | - | |||||||
73 | - | |||||||
74 | - | |||||||
Switch to Source code | Preprocessed file |