summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/corelib/ipc/ipc.pro6
-rw-r--r--examples/opengl/hellogles3/main.cpp4
2 files changed, 7 insertions, 3 deletions
diff --git a/examples/corelib/ipc/ipc.pro b/examples/corelib/ipc/ipc.pro
index 101552cea9..68c88d75aa 100644
--- a/examples/corelib/ipc/ipc.pro
+++ b/examples/corelib/ipc/ipc.pro
@@ -3,4 +3,8 @@ requires(qtHaveModule(widgets))
TEMPLATE = subdirs
qtConfig(sharedmemory): SUBDIRS = sharedmemory
-qtHaveModule(network): SUBDIRS += localfortuneserver localfortuneclient
+qtHaveModule(network) {
+ QT_FOR_CONFIG += network
+
+ qtConfig(localserver): SUBDIRS += localfortuneserver localfortuneclient
+}
diff --git a/examples/opengl/hellogles3/main.cpp b/examples/opengl/hellogles3/main.cpp
index a6c6398628..29b3b9617a 100644
--- a/examples/opengl/hellogles3/main.cpp
+++ b/examples/opengl/hellogles3/main.cpp
@@ -64,6 +64,8 @@
int main(int argc, char *argv[])
{
+ QGuiApplication app(argc, argv);
+
QSurfaceFormat fmt;
fmt.setDepthBufferSize(24);
@@ -79,8 +81,6 @@ int main(int argc, char *argv[])
QSurfaceFormat::setDefaultFormat(fmt);
- QGuiApplication app(argc, argv);
-
GLWindow glWindow;
glWindow.showMaximized();