summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/network/http/httpwindow.cpp6
-rw-r--r--examples/opengl/legacy/shared/qtlogo.h3
-rw-r--r--examples/widgets/mac/qmaccocoaviewcontainer/qmaccocoaviewcontainer.pro3
-rw-r--r--examples/widgets/mac/qmacnativewidget/qmacnativewidget.pro4
4 files changed, 12 insertions, 4 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp
index c85ad97248..fddd2c809a 100644
--- a/examples/network/http/httpwindow.cpp
+++ b/examples/network/http/httpwindow.cpp
@@ -56,9 +56,9 @@
#include "ui_authenticationdialog.h"
#ifndef QT_NO_SSL
-static const char defaultUrl[] = "https://qt-project.org/";
+static const char defaultUrl[] = "https://www.qt.io/";
#else
-static const char defaultUrl[] = "http://qt-project.org/";
+static const char defaultUrl[] = "http://www.qt.io/";
#endif
static const char defaultFileName[] = "index.html";
@@ -106,7 +106,7 @@ HttpWindow::HttpWindow(QWidget *parent)
connect(urlLineEdit, &QLineEdit::textChanged,
this, &HttpWindow::enableDownloadButton);
formLayout->addRow(tr("&URL:"), urlLineEdit);
- QString downloadDirectory = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
+ QString downloadDirectory = QStandardPaths::writableLocation(QStandardPaths::TempLocation);
if (downloadDirectory.isEmpty() || !QFileInfo(downloadDirectory).isDir())
downloadDirectory = QDir::currentPath();
downloadDirectoryLineEdit->setText(QDir::toNativeSeparators(downloadDirectory));
diff --git a/examples/opengl/legacy/shared/qtlogo.h b/examples/opengl/legacy/shared/qtlogo.h
index 92ada8eba5..ed2d7d750d 100644
--- a/examples/opengl/legacy/shared/qtlogo.h
+++ b/examples/opengl/legacy/shared/qtlogo.h
@@ -54,7 +54,8 @@
#include <QObject>
#include <QColor>
-class QOpenGLFunctions_1_1;
+QT_FORWARD_DECLARE_CLASS(QOpenGLFunctions_1_1)
+
class Patch;
struct Geometry;
diff --git a/examples/widgets/mac/qmaccocoaviewcontainer/qmaccocoaviewcontainer.pro b/examples/widgets/mac/qmaccocoaviewcontainer/qmaccocoaviewcontainer.pro
index 9dea65bf9f..9db3452488 100644
--- a/examples/widgets/mac/qmaccocoaviewcontainer/qmaccocoaviewcontainer.pro
+++ b/examples/widgets/mac/qmaccocoaviewcontainer/qmaccocoaviewcontainer.pro
@@ -5,3 +5,6 @@ LIBS += -framework AppKit
QT += widgets
+# install
+target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mac/qmaccocoaviewcontainer
+INSTALLS += target
diff --git a/examples/widgets/mac/qmacnativewidget/qmacnativewidget.pro b/examples/widgets/mac/qmacnativewidget/qmacnativewidget.pro
index 9da91c7be0..5a19d41dc8 100644
--- a/examples/widgets/mac/qmacnativewidget/qmacnativewidget.pro
+++ b/examples/widgets/mac/qmacnativewidget/qmacnativewidget.pro
@@ -5,3 +5,7 @@ LIBS += -framework AppKit
QT += widgets
#QT += widgets-private gui-private core-private
+
+# install
+target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mac/qmacnativewidget
+INSTALLS += target