summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/bearerex/bearerex.cpp9
-rw-r--r--tests/manual/bearerex/bearerex.h2
-rw-r--r--tests/manual/bearerex/bearerex.pro1
-rw-r--r--tests/manual/bearerex/datatransferer.cpp41
-rw-r--r--tests/manual/bearerex/datatransferer.h17
-rw-r--r--tests/manual/cocoa/qt_on_cocoa/window.cpp2
-rw-r--r--tests/manual/cocoa/wheelevent/main.cpp2
-rw-r--r--tests/manual/cocoa/wheelevent/window.cpp2
-rw-r--r--tests/manual/gestures/gestures.pro4
-rw-r--r--tests/manual/gestures/graphicsview/graphicsview.pro2
-rw-r--r--tests/manual/gestures/graphicsview/main.cpp2
-rw-r--r--tests/manual/gestures/scrollarea/main.cpp2
-rw-r--r--tests/manual/gestures/scrollarea/scrollarea.pro2
-rw-r--r--tests/manual/inputmethodhints/inputmethodhints.h4
-rw-r--r--tests/manual/inputmethodhints/inputmethodhints.pro3
-rw-r--r--tests/manual/inputmethodhints/main.cpp2
-rw-r--r--tests/manual/keypadnavigation/keypadnavigation.pro1
-rw-r--r--tests/manual/keypadnavigation/main.cpp2
-rw-r--r--tests/manual/lance/interactivewidget.cpp2
-rw-r--r--tests/manual/lance/interactivewidget.h2
-rw-r--r--tests/manual/lance/lance.pro4
-rw-r--r--tests/manual/lance/main.cpp12
-rw-r--r--tests/manual/lance/widgets.h10
-rw-r--r--tests/manual/manual.pro32
-rw-r--r--tests/manual/network_remote_stresstest/network_remote_stresstest.pro3
-rw-r--r--tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp38
-rw-r--r--tests/manual/network_stresstest/minihttpserver.cpp2
-rw-r--r--tests/manual/network_stresstest/network_stresstest.pro3
-rw-r--r--tests/manual/network_stresstest/tst_network_stresstest.cpp6
-rw-r--r--tests/manual/qdesktopwidget/main.cpp2
-rw-r--r--tests/manual/qdesktopwidget/qdesktopwidget.pro1
-rw-r--r--tests/manual/qgraphicsitemgroup/customitem.cpp2
-rw-r--r--tests/manual/qgraphicsitemgroup/main.cpp2
-rw-r--r--tests/manual/qgraphicsitemgroup/qgraphicsitemgroup.pro1
-rw-r--r--tests/manual/qgraphicslayout/flicker/flicker.pro1
-rw-r--r--tests/manual/qgraphicslayout/flicker/main.cpp3
-rw-r--r--tests/manual/qgraphicslayout/flicker/window.h6
-rw-r--r--tests/manual/qhttpnetworkconnection/qhttpnetworkconnection.pro2
-rw-r--r--tests/manual/qimagereader/main.cpp2
-rw-r--r--tests/manual/qimagereader/qimagereader.pro1
-rw-r--r--tests/manual/qlocale/calendar.cpp2
-rw-r--r--tests/manual/qlocale/calendar.h2
-rw-r--r--tests/manual/qlocale/currency.h2
-rw-r--r--tests/manual/qlocale/dateformats.h2
-rw-r--r--tests/manual/qlocale/info.h2
-rw-r--r--tests/manual/qlocale/languages.h2
-rw-r--r--tests/manual/qlocale/main.cpp2
-rw-r--r--tests/manual/qlocale/miscellaneous.h2
-rw-r--r--tests/manual/qlocale/numberformats.h2
-rw-r--r--tests/manual/qlocale/qlocale.pro1
-rw-r--r--tests/manual/qlocale/window.h2
-rw-r--r--tests/manual/qnetworkaccessmanager/qget/downloadmanager.cpp6
-rw-r--r--tests/manual/qnetworkaccessmanager/qget/qget.h2
-rw-r--r--tests/manual/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro2
-rw-r--r--tests/manual/qnetworkreply/qnetworkreply.pro2
-rw-r--r--tests/manual/qtabletevent/device_information/device_information.pro (renamed from tests/manual/qtabletevent/device_information/qtabletevent.pro)1
-rw-r--r--tests/manual/qtabletevent/device_information/main.cpp2
-rw-r--r--tests/manual/qtabletevent/device_information/tabletwidget.cpp2
-rw-r--r--tests/manual/qtabletevent/event_compression/event_compression.pro2
-rw-r--r--tests/manual/qtabletevent/qtabletevent.pro5
-rw-r--r--tests/manual/qtabletevent/regular_widgets/regular_widgets.pro1
-rw-r--r--tests/manual/qtbug-8933/main.cpp2
-rw-r--r--tests/manual/qtbug-8933/qtbug-8933.pro2
-rw-r--r--tests/manual/qtouchevent/main.cpp2
-rw-r--r--tests/manual/qtouchevent/qtouchevent.pro2
-rw-r--r--tests/manual/qwidget_zorder/main.cpp2
-rw-r--r--tests/manual/qwidget_zorder/qwidget_zorder.pro1
-rw-r--r--tests/manual/repaint/mainwindow/main.cpp2
-rw-r--r--tests/manual/repaint/mainwindow/mainwindow.pro1
-rw-r--r--tests/manual/repaint/repaint.pro9
-rw-r--r--tests/manual/repaint/scrollarea/main.cpp2
-rw-r--r--tests/manual/repaint/scrollarea/scrollarea.pro1
-rw-r--r--tests/manual/repaint/shared/shared.h2
-rw-r--r--tests/manual/repaint/splitter/main.cpp2
-rw-r--r--tests/manual/repaint/splitter/splitter.pro1
-rw-r--r--tests/manual/repaint/tableview/main.cpp2
-rw-r--r--tests/manual/repaint/tableview/tableview.pro1
-rw-r--r--tests/manual/repaint/task141091/main.cpp2
-rw-r--r--tests/manual/repaint/task141091/task141091.pro2
-rw-r--r--tests/manual/repaint/toplevel/main.cpp2
-rw-r--r--tests/manual/repaint/toplevel/toplevel.pro1
-rw-r--r--tests/manual/repaint/widget/main.cpp2
-rw-r--r--tests/manual/repaint/widget/widget.pro1
-rw-r--r--tests/manual/socketengine/main.cpp3
-rw-r--r--tests/manual/socketengine/socketengine.pro4
-rw-r--r--tests/manual/textrendering/glyphshaping/glyphshaping.pro1
-rw-r--r--tests/manual/textrendering/glyphshaping/main.cpp2
-rw-r--r--tests/manual/textrendering/textperformance/main.cpp2
-rw-r--r--tests/manual/textrendering/textperformance/textperformance.pro1
-rw-r--r--tests/manual/textrendering/textrendering.pro4
-rw-r--r--tests/manual/widgets/itemviews/delegate/delegate.pro (renamed from tests/manual/widgets/itemviews/delegate/example.pro)1
-rw-r--r--tests/manual/windowflags/controllerwindow.cpp12
-rw-r--r--tests/manual/windowflags/previewwindow.cpp4
-rw-r--r--tests/manual/windowflags/windowflags.pro2
-rw-r--r--tests/manual/windowmodality/windowmodality.pro (renamed from tests/manual/windowmodality/modality.pro)0
95 files changed, 199 insertions, 164 deletions
diff --git a/tests/manual/bearerex/bearerex.cpp b/tests/manual/bearerex/bearerex.cpp
index 190be6f6b4..6826312880 100644
--- a/tests/manual/bearerex/bearerex.cpp
+++ b/tests/manual/bearerex/bearerex.cpp
@@ -43,6 +43,7 @@
#include "datatransferer.h"
#include <QtNetwork>
+#include <QtWidgets>
Q_DECLARE_METATYPE(QNetworkConfiguration)
@@ -284,7 +285,7 @@ SessionTab::SessionTab(QNetworkConfiguration* apNetworkConfiguration,
} else if (apNetworkConfiguration->type() == QNetworkConfiguration::ServiceNetwork) {
snapLineEdit->setText(apNetworkConfiguration->name()+" ("+apNetworkConfiguration->identifier()+")");
}
- bearerLineEdit->setText(apNetworkConfiguration->bearerName());
+ bearerLineEdit->setText(apNetworkConfiguration->bearerTypeName());
sentRecDataLineEdit->setText(QString::number(m_NetworkSession->bytesWritten())+
QString(" / ")+
QString::number(m_NetworkSession->bytesReceived()));
@@ -314,8 +315,6 @@ void SessionTab::on_createQNetworkAccessManagerButton_clicked()
m_dataTransferer = new DataTransfererQNam(this);
} else if (type == "QTcpSocket") {
m_dataTransferer = new DataTransfererQTcp(this);
- } else if (type == "QHttp") {
- m_dataTransferer = new DataTransfererQHttp(this);
} else {
qDebug("BearerEx Warning, unknown data transfer object requested, not creating anything.");
return;
@@ -512,10 +511,10 @@ void SessionTab::newState(QNetworkSession::State state)
QNetworkConfiguration config = m_ConfigManager->configurationFromIdentifier(configId);
if (config.isValid()) {
iapLineEdit->setText(config.name()+" ("+config.identifier()+")");
- bearerLineEdit->setText(config.bearerName());
+ bearerLineEdit->setText(config.bearerTypeName());
}
} else {
- bearerLineEdit->setText(m_NetworkSession->configuration().bearerName());
+ bearerLineEdit->setText(m_NetworkSession->configuration().bearerTypeName());
}
QString active;
diff --git a/tests/manual/bearerex/bearerex.h b/tests/manual/bearerex/bearerex.h
index 7ab0177128..60963e8fd2 100644
--- a/tests/manual/bearerex/bearerex.h
+++ b/tests/manual/bearerex/bearerex.h
@@ -42,7 +42,7 @@
#ifndef ACCESSPOINTMANAGEREX_H
#define ACCESSPOINTMANAGEREX_H
-#include <QtGui>
+#include <QtWidgets>
#include "ui_detailedinfodialog.h"
diff --git a/tests/manual/bearerex/bearerex.pro b/tests/manual/bearerex/bearerex.pro
index 123038dba4..a49c644e2e 100644
--- a/tests/manual/bearerex/bearerex.pro
+++ b/tests/manual/bearerex/bearerex.pro
@@ -3,6 +3,7 @@ TARGET = BearerEx
QT += core \
gui \
+ widgets \
network
FORMS += detailedinfodialog.ui
diff --git a/tests/manual/bearerex/datatransferer.cpp b/tests/manual/bearerex/datatransferer.cpp
index 1380607632..648a466a30 100644
--- a/tests/manual/bearerex/datatransferer.cpp
+++ b/tests/manual/bearerex/datatransferer.cpp
@@ -134,47 +134,6 @@ void DataTransfererQTcp::error(QAbstractSocket::SocketError socketError)
emit finished(socketError, 0, "QAbstractSocket::SocketError");
}
-// -------- Based on QHttp
-
-DataTransfererQHttp::DataTransfererQHttp(QObject* parent)
-: DataTransferer(parent)
-{
- connect(&m_qhttp, SIGNAL(done(bool)), this, SLOT(done(bool)));
- qDebug("BearerEx DataTransferer QHttp created.");
-}
-
-DataTransfererQHttp::~DataTransfererQHttp()
-{
- qDebug("BearerEx DataTransferer QHttp destroyed.");
-}
-
-bool DataTransfererQHttp::transferData()
-{
- qDebug("BearerEx datatransfer for QHttp requested.");
- if (m_dataTransferOngoing) {
- return false;
- }
- QString urlstring("http://www.google.com");
- QUrl url(urlstring);
- m_qhttp.setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port());
- m_qhttp.get(urlstring);
- m_dataTransferOngoing = true;
- return true;
-}
-
-void DataTransfererQHttp::done(bool /*error*/ )
-{
- qDebug("BearerEx DatatransfererQHttp reply was finished (error code is type QHttp::Error).");
- qint64 dataReceived = 0;
- quint32 errorCode = m_qhttp.error();
- if (m_qhttp.error() == QHttp::NoError) {
- QString result(m_qhttp.readAll());
- dataReceived = result.length();
- }
- m_dataTransferOngoing = false;
- emit finished(errorCode, dataReceived, "QHttp::Error");
-}
-
// -------- Based on QNetworkAccessManager
DataTransfererQNam::DataTransfererQNam(QObject* parent)
diff --git a/tests/manual/bearerex/datatransferer.h b/tests/manual/bearerex/datatransferer.h
index e657b20b38..4be8572a7c 100644
--- a/tests/manual/bearerex/datatransferer.h
+++ b/tests/manual/bearerex/datatransferer.h
@@ -47,7 +47,6 @@
#include <QNetworkReply>
#include <QNetworkAccessManager>
#include <QTcpSocket>
-#include <QHttp>
#include <QDebug>
// Interface-class for data transferring object
@@ -111,20 +110,4 @@ private:
QNetworkAccessManager m_qnam;
};
-class DataTransfererQHttp : public DataTransferer
-{
- Q_OBJECT
-public:
- DataTransfererQHttp(QObject* parent = 0);
- ~DataTransfererQHttp();
-
- virtual bool transferData();
-
-public slots:
- void done(bool error);
-
-private:
- QHttp m_qhttp;
-};
-
#endif // DATATRANSFERER_H
diff --git a/tests/manual/cocoa/qt_on_cocoa/window.cpp b/tests/manual/cocoa/qt_on_cocoa/window.cpp
index d68e08a9f8..c1d4401eae 100644
--- a/tests/manual/cocoa/qt_on_cocoa/window.cpp
+++ b/tests/manual/cocoa/qt_on_cocoa/window.cpp
@@ -45,7 +45,7 @@
#include <QBackingStore>
#include <QPainter>
-#include <QtGui>
+#include <QtWidgets>
static int colorIndexId = 0;
diff --git a/tests/manual/cocoa/wheelevent/main.cpp b/tests/manual/cocoa/wheelevent/main.cpp
index 979498991d..69c0960419 100644
--- a/tests/manual/cocoa/wheelevent/main.cpp
+++ b/tests/manual/cocoa/wheelevent/main.cpp
@@ -40,7 +40,7 @@
****************************************************************************/
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
#include "window.h"
diff --git a/tests/manual/cocoa/wheelevent/window.cpp b/tests/manual/cocoa/wheelevent/window.cpp
index b305b057bf..66c8af0ad1 100644
--- a/tests/manual/cocoa/wheelevent/window.cpp
+++ b/tests/manual/cocoa/wheelevent/window.cpp
@@ -45,7 +45,7 @@
#include <QBackingStore>
#include <QPainter>
-#include <QtGui>
+#include <QtWidgets>
static int colorIndexId = 0;
diff --git a/tests/manual/gestures/gestures.pro b/tests/manual/gestures/gestures.pro
new file mode 100644
index 0000000000..6ff914f542
--- /dev/null
+++ b/tests/manual/gestures/gestures.pro
@@ -0,0 +1,4 @@
+TEMPLATE=subdirs
+
+SUBDIRS = graphicsview \
+ scrollarea
diff --git a/tests/manual/gestures/graphicsview/graphicsview.pro b/tests/manual/gestures/graphicsview/graphicsview.pro
index c5f6fe0764..9ecd0b372f 100644
--- a/tests/manual/gestures/graphicsview/graphicsview.pro
+++ b/tests/manual/gestures/graphicsview/graphicsview.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES += main.cpp \
imageitem.cpp \
gestures.cpp \
diff --git a/tests/manual/gestures/graphicsview/main.cpp b/tests/manual/gestures/graphicsview/main.cpp
index ddda06ea22..465c3a2d65 100644
--- a/tests/manual/gestures/graphicsview/main.cpp
+++ b/tests/manual/gestures/graphicsview/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "imageitem.h"
#include "gestures.h"
diff --git a/tests/manual/gestures/scrollarea/main.cpp b/tests/manual/gestures/scrollarea/main.cpp
index d77ce8e373..190441989e 100644
--- a/tests/manual/gestures/scrollarea/main.cpp
+++ b/tests/manual/gestures/scrollarea/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "mousepangesturerecognizer.h"
diff --git a/tests/manual/gestures/scrollarea/scrollarea.pro b/tests/manual/gestures/scrollarea/scrollarea.pro
index 554810e0c3..84e2af3f49 100644
--- a/tests/manual/gestures/scrollarea/scrollarea.pro
+++ b/tests/manual/gestures/scrollarea/scrollarea.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
SOURCES = main.cpp \
mousepangesturerecognizer.cpp
HEADERS += mousepangesturerecognizer.h
diff --git a/tests/manual/inputmethodhints/inputmethodhints.h b/tests/manual/inputmethodhints/inputmethodhints.h
index 4746c9a11a..82d3e7290e 100644
--- a/tests/manual/inputmethodhints/inputmethodhints.h
+++ b/tests/manual/inputmethodhints/inputmethodhints.h
@@ -42,8 +42,8 @@
#ifndef INPUTMETHODHINTS_H
#define INPUTMETHODHINTS_H
-#include <QtGui/QMainWindow>
-#include "ui_tst_inputmethodhints.h"
+#include <QtWidgets/QMainWindow>
+#include "ui_inputmethodhints.h"
class inputmethodhints : public QMainWindow
{
diff --git a/tests/manual/inputmethodhints/inputmethodhints.pro b/tests/manual/inputmethodhints/inputmethodhints.pro
index 171c5f1772..f253f72332 100644
--- a/tests/manual/inputmethodhints/inputmethodhints.pro
+++ b/tests/manual/inputmethodhints/inputmethodhints.pro
@@ -1,8 +1,7 @@
TEMPLATE = app
TARGET = tst_inputmethodhints
-QT += core \
- gui
+QT += widgets
HEADERS += inputmethodhints.h
SOURCES += main.cpp \
diff --git a/tests/manual/inputmethodhints/main.cpp b/tests/manual/inputmethodhints/main.cpp
index af3286df73..fcd6d16892 100644
--- a/tests/manual/inputmethodhints/main.cpp
+++ b/tests/manual/inputmethodhints/main.cpp
@@ -41,7 +41,7 @@
#include "inputmethodhints.h"
-#include <QtGui>
+#include <QtWidgets>
#include <QApplication>
int main(int argc, char *argv[])
diff --git a/tests/manual/keypadnavigation/keypadnavigation.pro b/tests/manual/keypadnavigation/keypadnavigation.pro
index 6d12606c78..a45d38af21 100644
--- a/tests/manual/keypadnavigation/keypadnavigation.pro
+++ b/tests/manual/keypadnavigation/keypadnavigation.pro
@@ -1,2 +1,3 @@
+QT += widgets
SOURCES += main.cpp
FORMS += keypadnavigation.ui
diff --git a/tests/manual/keypadnavigation/main.cpp b/tests/manual/keypadnavigation/main.cpp
index 4f7224d135..964d46faf6 100644
--- a/tests/manual/keypadnavigation/main.cpp
+++ b/tests/manual/keypadnavigation/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "ui_keypadnavigation.h"
class KeypadNavigation : public QMainWindow
diff --git a/tests/manual/lance/interactivewidget.cpp b/tests/manual/lance/interactivewidget.cpp
index 55e60a8946..0b9d8ee0a4 100644
--- a/tests/manual/lance/interactivewidget.cpp
+++ b/tests/manual/lance/interactivewidget.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
#include "interactivewidget.h"
-#include <QtGui/QToolBox>
+#include <QtWidgets>
InteractiveWidget::InteractiveWidget()
{
diff --git a/tests/manual/lance/interactivewidget.h b/tests/manual/lance/interactivewidget.h
index e9e584512e..879facac42 100644
--- a/tests/manual/lance/interactivewidget.h
+++ b/tests/manual/lance/interactivewidget.h
@@ -44,7 +44,7 @@
#include "widgets.h"
#include "paintcommands.h"
-#include <QtGui>
+#include <QMainWindow>
#include <private/qmath_p.h>
diff --git a/tests/manual/lance/lance.pro b/tests/manual/lance/lance.pro
index e24d3f2fa3..4b319369e6 100644
--- a/tests/manual/lance/lance.pro
+++ b/tests/manual/lance/lance.pro
@@ -1,8 +1,8 @@
-LANCELOT_DIR = $$PWD/../../auto/lancelot
+LANCELOT_DIR = $$PWD/../../auto/other/lancelot
CONFIG+=console moc
TEMPLATE = app
INCLUDEPATH += . $$LANCELOT_DIR
-QT += core-private gui-private
+QT += core-private gui-private widgets printsupport
HEADERS += widgets.h \
interactivewidget.h \
diff --git a/tests/manual/lance/main.cpp b/tests/manual/lance/main.cpp
index c33cb49be9..e8bb44a221 100644
--- a/tests/manual/lance/main.cpp
+++ b/tests/manual/lance/main.cpp
@@ -43,7 +43,8 @@
#include "paintcommands.h"
#include <QtCore>
-#include <QtGui>
+#include <QtWidgets>
+#include <QtPrintSupport>
#include <qimage.h>
#include <QPicture>
@@ -612,14 +613,11 @@ int main(int argc, char **argv)
pcmd.setType(type);
pcmd.setCheckersBackground(checkers_background);
pcmd.setContents(content);
- bool ps = type == PsType;
QPrinter p(highres ? QPrinter::HighResolution : QPrinter::ScreenResolution);
QFileInfo input(files.at(j));
- QString file = QString("%1_%2.%3")
- .arg(input.baseName())
- .arg(input.suffix())
- .arg(ps ? "ps" : "pdf");
- p.setOutputFormat(ps ? QPrinter::PdfFormat : QPrinter::PostScriptFormat);
+ const QString file = input.baseName() + QLatin1Char('_')
+ + input.suffix() + QStringLiteral(".pdf");
+ p.setOutputFormat(QPrinter::PdfFormat);
p.setOutputFileName(file);
p.setPageSize(QPrinter::A4);
QPainter pt(&p);
diff --git a/tests/manual/lance/widgets.h b/tests/manual/lance/widgets.h
index d8a67a7554..33115ad7b3 100644
--- a/tests/manual/lance/widgets.h
+++ b/tests/manual/lance/widgets.h
@@ -59,9 +59,6 @@
#include <QSignalMapper>
#include <QAction>
-
-#include <private/qwindowsurface_p.h>
-
#include <qmath.h>
const int CP_RADIUS = 10;
@@ -236,12 +233,7 @@ public:
}
if (m_render_view.isNull()) {
-
- if (T::window()->windowSurface())
- m_render_view = T::window()->windowSurface()->grabWidget(this);
- else
- m_render_view = QPixmap::grabWidget(this);
-
+ m_render_view = QPixmap::grabWidget(this);
m_render_view.save("renderView.png");
}
}
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
new file mode 100644
index 0000000000..9df151eee1
--- /dev/null
+++ b/tests/manual/manual.pro
@@ -0,0 +1,32 @@
+TEMPLATE=subdirs
+
+SUBDIRS = bearerex \
+gestures \
+inputmethodhints \
+keypadnavigation \
+lance \
+network_remote_stresstest \
+network_stresstest \
+qcursor \
+qdesktopwidget \
+qgraphicsitemgroup \
+qgraphicslayout/flicker \
+qhttpnetworkconnection \
+qimagereader \
+qlocale \
+qnetworkaccessmanager/qget \
+qnetworkconfigurationmanager \
+qnetworkreply \
+qssloptions \
+qtabletevent \
+qtbug-8933 \
+qtouchevent \
+qwidget_zorder \
+repaint \
+socketengine \
+textrendering \
+widgets/itemviews/delegate \
+windowflags \
+windowmodality
+
+!contains(QT_CONFIG, openssl):!contains(QT_CONFIG, openssl-linked):SUBDIRS -= qssloptions
diff --git a/tests/manual/network_remote_stresstest/network_remote_stresstest.pro b/tests/manual/network_remote_stresstest/network_remote_stresstest.pro
index 3a581e12ad..8b52240509 100644
--- a/tests/manual/network_remote_stresstest/network_remote_stresstest.pro
+++ b/tests/manual/network_remote_stresstest/network_remote_stresstest.pro
@@ -1,9 +1,10 @@
CONFIG += testcase
TARGET = tst_network_remote_stresstest
-QT = core network testlib
+QT = core core-private network network-private testlib
SOURCES += tst_network_remote_stresstest.cpp
RESOURCES += url-list.qrc
+LIBS += $$QMAKE_LIBS_NETWORK
diff --git a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp
index c2981c6df8..109ecbe2aa 100644
--- a/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp
+++ b/tests/manual/network_remote_stresstest/tst_network_remote_stresstest.cpp
@@ -235,6 +235,10 @@ void tst_NetworkRemoteStressTest::blockingSequentialRemoteHosts()
QElapsedTimer outerTimer;
outerTimer.start();
+#ifdef QT_NO_SSL
+ QVERIFY(!useSslSocket);
+#endif // QT_NO_SSL
+
for (int i = 0; i < urlList.size(); ++i) {
const QUrl &url = urlList.at(i);
bool isHttps = url.scheme() == "https";
@@ -243,21 +247,24 @@ void tst_NetworkRemoteStressTest::blockingSequentialRemoteHosts()
timeout.start();
QSharedPointer<QTcpSocket> socket;
- if (useSslSocket || isHttps) {
+#ifndef QT_NO_SSL
+ if (useSslSocket || isHttps)
socket = QSharedPointer<QTcpSocket>(new QSslSocket);
- } else {
+#endif // QT_NO_SSL
+ if (socket.isNull())
socket = QSharedPointer<QTcpSocket>(new QTcpSocket);
- }
socket->connectToHost(url.host(), url.port(isHttps ? 443 : 80));
QVERIFY2(socket->waitForConnected(10000), "Timeout connecting to " + url.encodedHost());
+#ifndef QT_NO_SSL
if (isHttps) {
static_cast<QSslSocket *>(socket.data())->setProtocol(QSsl::TlsV1_0);
static_cast<QSslSocket *>(socket.data())->startClientEncryption();
static_cast<QSslSocket *>(socket.data())->ignoreSslErrors();
QVERIFY2(static_cast<QSslSocket *>(socket.data())->waitForEncrypted(10000), "Timeout starting TLS with " + url.encodedHost());
}
+#endif // QT_NO_SSL
socket->write("GET " + url.toEncoded(QUrl::RemoveScheme | QUrl::RemoveAuthority | QUrl::RemoveFragment) + " HTTP/1.0\r\n"
"Connection: close\r\n"
@@ -288,6 +295,10 @@ void tst_NetworkRemoteStressTest::sequentialRemoteHosts()
QFETCH_GLOBAL(QVector<QUrl>, urlList);
QFETCH_GLOBAL(bool, useSslSocket);
+#ifdef QT_NO_SSL
+ QVERIFY(!useSslSocket);
+#endif // QT_NO_SSL
+
qint64 totalBytes = 0;
QElapsedTimer outerTimer;
outerTimer.start();
@@ -300,15 +311,18 @@ void tst_NetworkRemoteStressTest::sequentialRemoteHosts()
timeout.start();
QSharedPointer<QTcpSocket> socket;
- if (useSslSocket || isHttps) {
+#ifndef QT_NO_SSL
+ if (useSslSocket || isHttps)
socket = QSharedPointer<QTcpSocket>(new QSslSocket);
- } else {
+#endif // QT_NO_SSL
+ if (socket.isNull())
socket = QSharedPointer<QTcpSocket>(new QTcpSocket);
- }
if (isHttps) {
+#ifndef QT_NO_SSL
static_cast<QSslSocket *>(socket.data())->setProtocol(QSsl::TlsV1_0);
static_cast<QSslSocket *>(socket.data())->connectToHostEncrypted(url.host(), url.port(443));
static_cast<QSslSocket *>(socket.data())->ignoreSslErrors();
+#endif // QT_NO_SSL
} else {
socket->connectToHost(url.host(), url.port(80));
}
@@ -356,6 +370,10 @@ void tst_NetworkRemoteStressTest::parallelRemoteHosts()
QFETCH(int, parallelAttempts);
+#ifdef QT_NO_SSL
+ QVERIFY(!useSslSocket);
+#endif // QT_NO_SSL
+
qint64 totalBytes = 0;
QElapsedTimer outerTimer;
outerTimer.start();
@@ -371,15 +389,19 @@ void tst_NetworkRemoteStressTest::parallelRemoteHosts()
for (int j = 0; j < parallelAttempts && it != urlList.constEnd(); ++j, ++it) {
const QUrl &url = *it;
bool isHttps = url.scheme() == "https";
- QTcpSocket *socket;
+ QTcpSocket *socket = 0;
+#ifndef QT_NO_SSL
if (useSslSocket || isHttps)
socket = new QSslSocket;
- else
+#endif // QT_NO_SSL
+ if (!socket)
socket = new QTcpSocket;
if (isHttps) {
+#ifndef QT_NO_SSL
static_cast<QSslSocket *>(socket)->setProtocol(QSsl::TlsV1_0);
static_cast<QSslSocket *>(socket)->connectToHostEncrypted(url.host(), url.port(443));
static_cast<QSslSocket *>(socket)->ignoreSslErrors();
+#endif // QT_NO_SSL
} else {
socket->connectToHost(url.host(), url.port(isHttps ? 443 : 80));
}
diff --git a/tests/manual/network_stresstest/minihttpserver.cpp b/tests/manual/network_stresstest/minihttpserver.cpp
index e3473a3141..1bafe9363d 100644
--- a/tests/manual/network_stresstest/minihttpserver.cpp
+++ b/tests/manual/network_stresstest/minihttpserver.cpp
@@ -148,7 +148,7 @@ void MiniHttpServerConnection::handlePendingRequest()
return;
}
- QUrl uri = QUrl::fromEncoded(request.mid(4, eol - strlen(http11) - 4));
+ QUrl uri = QUrl::fromEncoded(request.mid(4, eol - int(strlen(http11)) - 4));
source.setFileName(":" + uri.path());
// connection-close?
diff --git a/tests/manual/network_stresstest/network_stresstest.pro b/tests/manual/network_stresstest/network_stresstest.pro
index caa8436cef..ebddf12961 100644
--- a/tests/manual/network_stresstest/network_stresstest.pro
+++ b/tests/manual/network_stresstest/network_stresstest.pro
@@ -1,7 +1,7 @@
CONFIG += testcase
TARGET = tst_network_stresstest
-QT = core network testlib
+QT = core-private network-private testlib
SOURCES += tst_network_stresstest.cpp \
minihttpserver.cpp
@@ -11,3 +11,4 @@ HEADERS += \
RESOURCES += wwwfiles.qrc
QMAKE_RESOURCE_FLAGS += -no-compress
+LIBS += $$QMAKE_LIBS_NETWORK
diff --git a/tests/manual/network_stresstest/tst_network_stresstest.cpp b/tests/manual/network_stresstest/tst_network_stresstest.cpp
index 0f2673e23c..74237ea9cc 100644
--- a/tests/manual/network_stresstest/tst_network_stresstest.cpp
+++ b/tests/manual/network_stresstest/tst_network_stresstest.cpp
@@ -338,13 +338,13 @@ void tst_NetworkStressTest::nativeNonBlockingConnectDisconnect()
QVERIFY(fd != INVALID_SOCKET);
// set the socket to non-blocking and start connecting
- unsigned long buf = v;
+ unsigned long buf = 0;
unsigned long outBuf;
DWORD sizeWritten = 0;
QVERIFY(::WSAIoctl(fd, FIONBIO, &buf, sizeof(unsigned long), &outBuf, sizeof(unsigned long), &sizeWritten, 0,0) != SOCKET_ERROR);
while (true) {
- int connectResult = ::WSAConnect(fd, sockAddrPtr, sockAddrSize, 0,0,0,0);
+ int connectResult = ::WSAConnect(fd, (sockaddr *)addr.data(), addr.size(), 0,0,0,0);
if (connectResult == 0 || WSAGetLastError() == WSAEISCONN) {
break; // connected
} else {
@@ -537,7 +537,7 @@ void tst_NetworkStressTest::blockingMultipleRequests()
qWarning() << "no content-length:" << QString(buffer);
break;
}
- pos += strlen("\r\ncontent-length: ");
+ pos += int(strlen("\r\ncontent-length: "));
int eol = buffer.indexOf("\r\n", pos + 2);
if (eol == -1) {
diff --git a/tests/manual/qdesktopwidget/main.cpp b/tests/manual/qdesktopwidget/main.cpp
index d693d6b67d..32137d78e3 100644
--- a/tests/manual/qdesktopwidget/main.cpp
+++ b/tests/manual/qdesktopwidget/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
class DesktopView : public QGraphicsView
{
diff --git a/tests/manual/qdesktopwidget/qdesktopwidget.pro b/tests/manual/qdesktopwidget/qdesktopwidget.pro
index 93d56eb137..8979e7ef35 100644
--- a/tests/manual/qdesktopwidget/qdesktopwidget.pro
+++ b/tests/manual/qdesktopwidget/qdesktopwidget.pro
@@ -1,2 +1,3 @@
TEMPLATE = app
+QT += widgets
SOURCES += main.cpp
diff --git a/tests/manual/qgraphicsitemgroup/customitem.cpp b/tests/manual/qgraphicsitemgroup/customitem.cpp
index 6f3f1e0522..eab218e9a0 100644
--- a/tests/manual/qgraphicsitemgroup/customitem.cpp
+++ b/tests/manual/qgraphicsitemgroup/customitem.cpp
@@ -80,7 +80,7 @@ CustomGroup::CustomGroup() :
setFlag(QGraphicsItem::ItemIsSelectable);
}
-void CustomGroup::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
+void CustomGroup::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *)
{
if (option->state & QStyle::State_Selected)
painter->setOpacity(1.);
diff --git a/tests/manual/qgraphicsitemgroup/main.cpp b/tests/manual/qgraphicsitemgroup/main.cpp
index d60941da3a..d76a3a6334 100644
--- a/tests/manual/qgraphicsitemgroup/main.cpp
+++ b/tests/manual/qgraphicsitemgroup/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include "widget.h"
int main(int argc, char *argv[])
diff --git a/tests/manual/qgraphicsitemgroup/qgraphicsitemgroup.pro b/tests/manual/qgraphicsitemgroup/qgraphicsitemgroup.pro
index 6676a2e7c1..6135f74b8b 100644
--- a/tests/manual/qgraphicsitemgroup/qgraphicsitemgroup.pro
+++ b/tests/manual/qgraphicsitemgroup/qgraphicsitemgroup.pro
@@ -1,4 +1,5 @@
TARGET = qgraphicsitemgroup
+QT += widgets
TEMPLATE = app
SOURCES += main.cpp \
widget.cpp \
diff --git a/tests/manual/qgraphicslayout/flicker/flicker.pro b/tests/manual/qgraphicslayout/flicker/flicker.pro
index 2e09826022..d800418f85 100644
--- a/tests/manual/qgraphicslayout/flicker/flicker.pro
+++ b/tests/manual/qgraphicslayout/flicker/flicker.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS += window.h
SOURCES += main.cpp window.cpp
diff --git a/tests/manual/qgraphicslayout/flicker/main.cpp b/tests/manual/qgraphicslayout/flicker/main.cpp
index e71915c22f..2947930895 100644
--- a/tests/manual/qgraphicslayout/flicker/main.cpp
+++ b/tests/manual/qgraphicslayout/flicker/main.cpp
@@ -39,8 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
-#include <windows.h>
+#include <QtWidgets>
#include "window.h"
int main(int argc, char **argv)
diff --git a/tests/manual/qgraphicslayout/flicker/window.h b/tests/manual/qgraphicslayout/flicker/window.h
index 4930381641..51bf0e0733 100644
--- a/tests/manual/qgraphicslayout/flicker/window.h
+++ b/tests/manual/qgraphicslayout/flicker/window.h
@@ -43,11 +43,11 @@
#define WINDOW_H
-#include <QtGui>
+#include <QtWidgets>
struct Statistics {
- Statistics() : output(0),
- setGeometryCount(0), currentBenchmarkIteration(0), relayoutClicked(false), sleepMsecs(0)
+ Statistics() : setGeometryCount(0), sleepMsecs(0), output(0),
+ currentBenchmarkIteration(0), relayoutClicked(false)
{
}
QMap<QGraphicsWidget*, int> setGeometryTracker;
diff --git a/tests/manual/qhttpnetworkconnection/qhttpnetworkconnection.pro b/tests/manual/qhttpnetworkconnection/qhttpnetworkconnection.pro
index fd21007793..8e73add252 100644
--- a/tests/manual/qhttpnetworkconnection/qhttpnetworkconnection.pro
+++ b/tests/manual/qhttpnetworkconnection/qhttpnetworkconnection.pro
@@ -5,6 +5,4 @@ TARGET = tst_qhttpnetworkconnection
QT -= gui
QT += network testlib
-CONFIG += release
-
SOURCES += main.cpp
diff --git a/tests/manual/qimagereader/main.cpp b/tests/manual/qimagereader/main.cpp
index 44cdc6ad36..e225c1bc0b 100644
--- a/tests/manual/qimagereader/main.cpp
+++ b/tests/manual/qimagereader/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
class MyWidget : public QWidget
{
diff --git a/tests/manual/qimagereader/qimagereader.pro b/tests/manual/qimagereader/qimagereader.pro
index 28dcadcbfa..3523257f3e 100644
--- a/tests/manual/qimagereader/qimagereader.pro
+++ b/tests/manual/qimagereader/qimagereader.pro
@@ -1 +1,2 @@
+QT += widgets
SOURCES += main.cpp
diff --git a/tests/manual/qlocale/calendar.cpp b/tests/manual/qlocale/calendar.cpp
index e23af4fa49..122f57fa64 100644
--- a/tests/manual/qlocale/calendar.cpp
+++ b/tests/manual/qlocale/calendar.cpp
@@ -38,7 +38,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "calendar.h"
diff --git a/tests/manual/qlocale/calendar.h b/tests/manual/qlocale/calendar.h
index bf0d5efac3..7780e82bbf 100644
--- a/tests/manual/qlocale/calendar.h
+++ b/tests/manual/qlocale/calendar.h
@@ -41,7 +41,7 @@
#ifndef CALENDAR_H
#define CALENDAR_H
-#include <QtGui>
+#include <QtWidgets>
class CalendarWidget : public QWidget
{
diff --git a/tests/manual/qlocale/currency.h b/tests/manual/qlocale/currency.h
index 1d3d536578..f722889600 100644
--- a/tests/manual/qlocale/currency.h
+++ b/tests/manual/qlocale/currency.h
@@ -41,7 +41,7 @@
#ifndef CURRENCY_H
#define CURRENCY_H
-#include <QtGui>
+#include <QtWidgets>
class CurrencyWidget : public QWidget
{
diff --git a/tests/manual/qlocale/dateformats.h b/tests/manual/qlocale/dateformats.h
index 78ef62343a..9355475820 100644
--- a/tests/manual/qlocale/dateformats.h
+++ b/tests/manual/qlocale/dateformats.h
@@ -41,7 +41,7 @@
#ifndef DATEFORMATS_H
#define DATEFORMATS_H
-#include <QtGui>
+#include <QtWidgets>
class DateFormatsWidget : public QWidget
{
diff --git a/tests/manual/qlocale/info.h b/tests/manual/qlocale/info.h
index 6cd7818feb..0c74dfb8ca 100644
--- a/tests/manual/qlocale/info.h
+++ b/tests/manual/qlocale/info.h
@@ -41,7 +41,7 @@
#ifndef INFO_H
#define INFO_H
-#include <QtGui>
+#include <QtWidgets>
class InfoWidget : public QWidget
{
diff --git a/tests/manual/qlocale/languages.h b/tests/manual/qlocale/languages.h
index 6723e0ffa7..07a86f6898 100644
--- a/tests/manual/qlocale/languages.h
+++ b/tests/manual/qlocale/languages.h
@@ -41,7 +41,7 @@
#ifndef LANGUAGES_H
#define LANGUAGES_H
-#include <QtGui>
+#include <QtWidgets>
class LanguagesWidget : public QWidget
{
diff --git a/tests/manual/qlocale/main.cpp b/tests/manual/qlocale/main.cpp
index 337dbb6ad3..8c4e2573d5 100644
--- a/tests/manual/qlocale/main.cpp
+++ b/tests/manual/qlocale/main.cpp
@@ -38,7 +38,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "window.h"
diff --git a/tests/manual/qlocale/miscellaneous.h b/tests/manual/qlocale/miscellaneous.h
index 2548f0d8f4..61ada8a00f 100644
--- a/tests/manual/qlocale/miscellaneous.h
+++ b/tests/manual/qlocale/miscellaneous.h
@@ -41,7 +41,7 @@
#ifndef MISCELLANEOUS_H
#define MISCELLANEOUS_H
-#include <QtGui>
+#include <QtWidgets>
class MiscWidget : public QWidget
{
diff --git a/tests/manual/qlocale/numberformats.h b/tests/manual/qlocale/numberformats.h
index 8243d1177c..bcc352a818 100644
--- a/tests/manual/qlocale/numberformats.h
+++ b/tests/manual/qlocale/numberformats.h
@@ -41,7 +41,7 @@
#ifndef NUMBERFORMATS_H
#define NUMBERFORMATS_H
-#include <QtGui>
+#include <QtWidgets>
class NumberFormatsWidget : public QWidget
{
diff --git a/tests/manual/qlocale/qlocale.pro b/tests/manual/qlocale/qlocale.pro
index 4eaddedcf0..a5a2766e65 100644
--- a/tests/manual/qlocale/qlocale.pro
+++ b/tests/manual/qlocale/qlocale.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS += currency.h calendar.h dateformats.h numberformats.h languages.h window.h miscellaneous.h info.h
SOURCES += currency.cpp main.cpp calendar.cpp dateformats.cpp numberformats.cpp languages.cpp window.cpp miscellaneous.cpp info.cpp
diff --git a/tests/manual/qlocale/window.h b/tests/manual/qlocale/window.h
index 1b2825aa5c..524ed97845 100644
--- a/tests/manual/qlocale/window.h
+++ b/tests/manual/qlocale/window.h
@@ -41,7 +41,7 @@
#ifndef WINDOW_H
#define WINDOW_H
-#include <QtGui>
+#include <QtWidgets>
#include "calendar.h"
#include "currency.h"
diff --git a/tests/manual/qnetworkaccessmanager/qget/downloadmanager.cpp b/tests/manual/qnetworkaccessmanager/qget/downloadmanager.cpp
index e3ba3ca88f..5eab6d43bd 100644
--- a/tests/manual/qnetworkaccessmanager/qget/downloadmanager.cpp
+++ b/tests/manual/qnetworkaccessmanager/qget/downloadmanager.cpp
@@ -83,7 +83,7 @@ void DownloadManager::upload(const QUrl &url, const QString &user, const QString
connect(ul, SIGNAL(downloadFinished(TransferItem*)), SLOT(downloadFinished(TransferItem*)));
}
-void DownloadManager::finished(QNetworkReply *reply)
+void DownloadManager::finished(QNetworkReply *)
{
}
@@ -121,7 +121,7 @@ void DownloadManager::authenticationRequired(QNetworkReply *reply, QAuthenticato
qDebug() << "authenticationRequired" << reply;
TransferItem *transfer = findTransfer(reply);
//provide the credentials exactly once, so that it fails if credentials are incorrect.
- if (transfer && !transfer->user.isEmpty() || !transfer->password.isEmpty()) {
+ if ((transfer && !transfer->user.isEmpty()) || !transfer->password.isEmpty()) {
auth->setUser(transfer->user);
auth->setPassword(transfer->password);
transfer->user.clear();
@@ -129,7 +129,7 @@ void DownloadManager::authenticationRequired(QNetworkReply *reply, QAuthenticato
}
}
-void DownloadManager::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *auth)
+void DownloadManager::proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *auth)
{
//provide the credentials exactly once, so that it fails if credentials are incorrect.
if (!proxyUser.isEmpty() || !proxyPassword.isEmpty()) {
diff --git a/tests/manual/qnetworkaccessmanager/qget/qget.h b/tests/manual/qnetworkaccessmanager/qget/qget.h
index bad4f5e4d2..978212dfa8 100644
--- a/tests/manual/qnetworkaccessmanager/qget/qget.h
+++ b/tests/manual/qnetworkaccessmanager/qget/qget.h
@@ -113,7 +113,9 @@ private slots:
void finished(QNetworkReply *reply);
void authenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator);
+#ifndef QT_NO_SSL
void sslErrors(QNetworkReply *reply, const QList<QSslError> &errors);
+#endif
void downloadFinished(TransferItem *item);
private:
TransferItem *findTransfer(QNetworkReply *reply);
diff --git a/tests/manual/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro b/tests/manual/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro
index 7ad271ce46..9e78f91621 100644
--- a/tests/manual/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro
+++ b/tests/manual/qnetworkconfigurationmanager/qnetworkconfigurationmanager.pro
@@ -5,6 +5,4 @@ TARGET = tst_qnetworkconfigurationmanager
QT -= gui
QT += network testlib
-CONFIG += release
-
SOURCES += main.cpp
diff --git a/tests/manual/qnetworkreply/qnetworkreply.pro b/tests/manual/qnetworkreply/qnetworkreply.pro
index 17f48c6544..e29ea7856c 100644
--- a/tests/manual/qnetworkreply/qnetworkreply.pro
+++ b/tests/manual/qnetworkreply/qnetworkreply.pro
@@ -5,6 +5,4 @@ TARGET = tst_qnetworkreply
QT -= gui
QT += network testlib
-CONFIG += release
-
SOURCES += main.cpp
diff --git a/tests/manual/qtabletevent/device_information/qtabletevent.pro b/tests/manual/qtabletevent/device_information/device_information.pro
index 8251d73094..727ad34bc1 100644
--- a/tests/manual/qtabletevent/device_information/qtabletevent.pro
+++ b/tests/manual/qtabletevent/device_information/device_information.pro
@@ -1,3 +1,4 @@
+QT += widgets
SOURCES += \
main.cpp \
tabletwidget.cpp
diff --git a/tests/manual/qtabletevent/device_information/main.cpp b/tests/manual/qtabletevent/device_information/main.cpp
index b4eea7875b..e551ae7d8a 100644
--- a/tests/manual/qtabletevent/device_information/main.cpp
+++ b/tests/manual/qtabletevent/device_information/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QApplication>
#include "tabletwidget.h"
int main(int argc, char **argv) {
diff --git a/tests/manual/qtabletevent/device_information/tabletwidget.cpp b/tests/manual/qtabletevent/device_information/tabletwidget.cpp
index d12da6c886..bc0c63bbb1 100644
--- a/tests/manual/qtabletevent/device_information/tabletwidget.cpp
+++ b/tests/manual/qtabletevent/device_information/tabletwidget.cpp
@@ -94,7 +94,7 @@ bool TabletWidget::eventFilter(QObject *, QEvent *ev)
return false;
}
-void TabletWidget::paintEvent(QPaintEvent *event)
+void TabletWidget::paintEvent(QPaintEvent *)
{
QPainter painter(this);
diff --git a/tests/manual/qtabletevent/event_compression/event_compression.pro b/tests/manual/qtabletevent/event_compression/event_compression.pro
index fd2521e44f..15650d6190 100644
--- a/tests/manual/qtabletevent/event_compression/event_compression.pro
+++ b/tests/manual/qtabletevent/event_compression/event_compression.pro
@@ -1,4 +1,4 @@
-QT += testlib
+QT += widgets testlib
SOURCES += main.cpp \
mousestatwidget.cpp
diff --git a/tests/manual/qtabletevent/qtabletevent.pro b/tests/manual/qtabletevent/qtabletevent.pro
new file mode 100644
index 0000000000..9e9fc39654
--- /dev/null
+++ b/tests/manual/qtabletevent/qtabletevent.pro
@@ -0,0 +1,5 @@
+TEMPLATE=subdirs
+
+SUBDIRS = device_information \
+ event_compression \
+ regular_widgets
diff --git a/tests/manual/qtabletevent/regular_widgets/regular_widgets.pro b/tests/manual/qtabletevent/regular_widgets/regular_widgets.pro
index 9f0da76c11..8f1f4342ee 100644
--- a/tests/manual/qtabletevent/regular_widgets/regular_widgets.pro
+++ b/tests/manual/qtabletevent/regular_widgets/regular_widgets.pro
@@ -1,3 +1,4 @@
TEMPLATE = app
+QT += widgets
SOURCES += main.cpp
diff --git a/tests/manual/qtbug-8933/main.cpp b/tests/manual/qtbug-8933/main.cpp
index d60941da3a..d76a3a6334 100644
--- a/tests/manual/qtbug-8933/main.cpp
+++ b/tests/manual/qtbug-8933/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui/QApplication>
+#include <QtWidgets/QApplication>
#include "widget.h"
int main(int argc, char *argv[])
diff --git a/tests/manual/qtbug-8933/qtbug-8933.pro b/tests/manual/qtbug-8933/qtbug-8933.pro
index 8b87c8346d..4600d47cac 100644
--- a/tests/manual/qtbug-8933/qtbug-8933.pro
+++ b/tests/manual/qtbug-8933/qtbug-8933.pro
@@ -6,7 +6,7 @@
TARGET = qtbug-8933
TEMPLATE = app
-
+QT += widgets
SOURCES += main.cpp\
widget.cpp
diff --git a/tests/manual/qtouchevent/main.cpp b/tests/manual/qtouchevent/main.cpp
index 206413bfa2..80598e477b 100644
--- a/tests/manual/qtouchevent/main.cpp
+++ b/tests/manual/qtouchevent/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include <QtTest>
#include "ui_form.h"
diff --git a/tests/manual/qtouchevent/qtouchevent.pro b/tests/manual/qtouchevent/qtouchevent.pro
index de1ee06f9e..6339bceb42 100644
--- a/tests/manual/qtouchevent/qtouchevent.pro
+++ b/tests/manual/qtouchevent/qtouchevent.pro
@@ -1,4 +1,4 @@
-QT += testlib
+QT += widgets testlib
SOURCES = main.cpp \
touchwidget.cpp
FORMS += form.ui
diff --git a/tests/manual/qwidget_zorder/main.cpp b/tests/manual/qwidget_zorder/main.cpp
index dadc089ce4..8c92ac86d7 100644
--- a/tests/manual/qwidget_zorder/main.cpp
+++ b/tests/manual/qwidget_zorder/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
class Widget : public QWidget
{
diff --git a/tests/manual/qwidget_zorder/qwidget_zorder.pro b/tests/manual/qwidget_zorder/qwidget_zorder.pro
index 28dcadcbfa..3523257f3e 100644
--- a/tests/manual/qwidget_zorder/qwidget_zorder.pro
+++ b/tests/manual/qwidget_zorder/qwidget_zorder.pro
@@ -1 +1,2 @@
+QT += widgets
SOURCES += main.cpp
diff --git a/tests/manual/repaint/mainwindow/main.cpp b/tests/manual/repaint/mainwindow/main.cpp
index c6f0ac646f..08b600280a 100644
--- a/tests/manual/repaint/mainwindow/main.cpp
+++ b/tests/manual/repaint/mainwindow/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "../shared/shared.h"
int main(int argc, char **argv)
diff --git a/tests/manual/repaint/mainwindow/mainwindow.pro b/tests/manual/repaint/mainwindow/mainwindow.pro
index db6b2d280c..f20e5fe402 100644
--- a/tests/manual/repaint/mainwindow/mainwindow.pro
+++ b/tests/manual/repaint/mainwindow/mainwindow.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS += ../shared/shared.h
SOURCES += main.cpp
diff --git a/tests/manual/repaint/repaint.pro b/tests/manual/repaint/repaint.pro
new file mode 100644
index 0000000000..7ad9d68260
--- /dev/null
+++ b/tests/manual/repaint/repaint.pro
@@ -0,0 +1,9 @@
+TEMPLATE=subdirs
+
+SUBDIRS = mainwindow \
+ scrollarea \
+ splitter \
+ tableview \
+ task141091 \
+ toplevel \
+ widget
diff --git a/tests/manual/repaint/scrollarea/main.cpp b/tests/manual/repaint/scrollarea/main.cpp
index 63fb755510..06d598d46b 100644
--- a/tests/manual/repaint/scrollarea/main.cpp
+++ b/tests/manual/repaint/scrollarea/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "../shared/shared.h"
diff --git a/tests/manual/repaint/scrollarea/scrollarea.pro b/tests/manual/repaint/scrollarea/scrollarea.pro
index db6b2d280c..f20e5fe402 100644
--- a/tests/manual/repaint/scrollarea/scrollarea.pro
+++ b/tests/manual/repaint/scrollarea/scrollarea.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS += ../shared/shared.h
SOURCES += main.cpp
diff --git a/tests/manual/repaint/shared/shared.h b/tests/manual/repaint/shared/shared.h
index 861d4178aa..3489c30cd8 100644
--- a/tests/manual/repaint/shared/shared.h
+++ b/tests/manual/repaint/shared/shared.h
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
class StaticWidget : public QWidget
{
Q_OBJECT
diff --git a/tests/manual/repaint/splitter/main.cpp b/tests/manual/repaint/splitter/main.cpp
index 2c4ca1d4f3..d260f00bf1 100644
--- a/tests/manual/repaint/splitter/main.cpp
+++ b/tests/manual/repaint/splitter/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "../shared/shared.h"
int main(int argc, char **argv)
diff --git a/tests/manual/repaint/splitter/splitter.pro b/tests/manual/repaint/splitter/splitter.pro
index db6b2d280c..f20e5fe402 100644
--- a/tests/manual/repaint/splitter/splitter.pro
+++ b/tests/manual/repaint/splitter/splitter.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS += ../shared/shared.h
SOURCES += main.cpp
diff --git a/tests/manual/repaint/tableview/main.cpp b/tests/manual/repaint/tableview/main.cpp
index dc25858681..227237a5e7 100644
--- a/tests/manual/repaint/tableview/main.cpp
+++ b/tests/manual/repaint/tableview/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "../shared/shared.h"
class CellWidget : public QWidget
diff --git a/tests/manual/repaint/tableview/tableview.pro b/tests/manual/repaint/tableview/tableview.pro
index 4097c95739..6a5aaad251 100644
--- a/tests/manual/repaint/tableview/tableview.pro
+++ b/tests/manual/repaint/tableview/tableview.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS +=../shared/shared.h
SOURCES += main.cpp
diff --git a/tests/manual/repaint/task141091/main.cpp b/tests/manual/repaint/task141091/main.cpp
index b2f639d411..9090a2a29d 100644
--- a/tests/manual/repaint/task141091/main.cpp
+++ b/tests/manual/repaint/task141091/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include <QDebug>
class MyWidget : public QWidget
diff --git a/tests/manual/repaint/task141091/task141091.pro b/tests/manual/repaint/task141091/task141091.pro
index 82ead4b6c2..b54299e540 100644
--- a/tests/manual/repaint/task141091/task141091.pro
+++ b/tests/manual/repaint/task141091/task141091.pro
@@ -1,3 +1,3 @@
CONFIG += console
-
+QT += widgets
SOURCES += main.cpp
diff --git a/tests/manual/repaint/toplevel/main.cpp b/tests/manual/repaint/toplevel/main.cpp
index cd43fa699c..6466fe80b2 100644
--- a/tests/manual/repaint/toplevel/main.cpp
+++ b/tests/manual/repaint/toplevel/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "../shared/shared.h"
int main(int argc, char **argv)
diff --git a/tests/manual/repaint/toplevel/toplevel.pro b/tests/manual/repaint/toplevel/toplevel.pro
index c2cc19f67d..a881c24f56 100644
--- a/tests/manual/repaint/toplevel/toplevel.pro
+++ b/tests/manual/repaint/toplevel/toplevel.pro
@@ -1,4 +1,5 @@
CONFIG += console
+QT += widgets
HEADERS += ../shared/shared.h
SOURCES += main.cpp
diff --git a/tests/manual/repaint/widget/main.cpp b/tests/manual/repaint/widget/main.cpp
index 64b9cc8a18..3ea557a642 100644
--- a/tests/manual/repaint/widget/main.cpp
+++ b/tests/manual/repaint/widget/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
#include "../shared/shared.h"
class Child : public StaticWidget
diff --git a/tests/manual/repaint/widget/widget.pro b/tests/manual/repaint/widget/widget.pro
index db6b2d280c..f20e5fe402 100644
--- a/tests/manual/repaint/widget/widget.pro
+++ b/tests/manual/repaint/widget/widget.pro
@@ -1,2 +1,3 @@
+QT += widgets
HEADERS += ../shared/shared.h
SOURCES += main.cpp
diff --git a/tests/manual/socketengine/main.cpp b/tests/manual/socketengine/main.cpp
index 48893f062d..349004a7d0 100644
--- a/tests/manual/socketengine/main.cpp
+++ b/tests/manual/socketengine/main.cpp
@@ -49,7 +49,6 @@
#include <QDebug>
#include <private/qabstractsocketengine_p.h>
#include <cstdio>
-#include <strings.h>
#include <QNetworkConfigurationManager>
#include <QNetworkConfiguration>
#include <QNetworkSession>
@@ -97,7 +96,7 @@ int main(int argc, char**argv)
// disconnected
exit(0);
}
- bzero(buf, bufsize);
+ qFill(buf, buf + bufsize, 0);
ret = socketEngine->read(buf, available);
if (ret > 0) {
printf("%s", buf);
diff --git a/tests/manual/socketengine/socketengine.pro b/tests/manual/socketengine/socketengine.pro
index 808502c22a..96831383ec 100644
--- a/tests/manual/socketengine/socketengine.pro
+++ b/tests/manual/socketengine/socketengine.pro
@@ -3,8 +3,6 @@ TEMPLATE = app
TARGET = tst_socketengine
QT -= gui
-QT += network testlib
-
-CONFIG += release
+QT += network-private core-private testlib
SOURCES += main.cpp
diff --git a/tests/manual/textrendering/glyphshaping/glyphshaping.pro b/tests/manual/textrendering/glyphshaping/glyphshaping.pro
index 1d78aa3351..6500814423 100644
--- a/tests/manual/textrendering/glyphshaping/glyphshaping.pro
+++ b/tests/manual/textrendering/glyphshaping/glyphshaping.pro
@@ -1,3 +1,4 @@
+QT += widgets
SOURCES = main.cpp
OTHER_FILES = glyphshaping_data.xml
glyphshaping_data.path = .
diff --git a/tests/manual/textrendering/glyphshaping/main.cpp b/tests/manual/textrendering/glyphshaping/main.cpp
index c41301f3fc..5a8cc4f12b 100644
--- a/tests/manual/textrendering/glyphshaping/main.cpp
+++ b/tests/manual/textrendering/glyphshaping/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
static const int fontPixelSize = 25;
static const QLatin1String fontFamily("Series 60 Sans");
diff --git a/tests/manual/textrendering/textperformance/main.cpp b/tests/manual/textrendering/textperformance/main.cpp
index c6a0c73849..cff0c1afad 100644
--- a/tests/manual/textrendering/textperformance/main.cpp
+++ b/tests/manual/textrendering/textperformance/main.cpp
@@ -39,7 +39,7 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets>
static const int lastMeasurementsCount = 50;
diff --git a/tests/manual/textrendering/textperformance/textperformance.pro b/tests/manual/textrendering/textperformance/textperformance.pro
index bba41b9c12..f07a4f0294 100644
--- a/tests/manual/textrendering/textperformance/textperformance.pro
+++ b/tests/manual/textrendering/textperformance/textperformance.pro
@@ -1 +1,2 @@
+QT += widgets
SOURCES = main.cpp
diff --git a/tests/manual/textrendering/textrendering.pro b/tests/manual/textrendering/textrendering.pro
new file mode 100644
index 0000000000..92f0741bf3
--- /dev/null
+++ b/tests/manual/textrendering/textrendering.pro
@@ -0,0 +1,4 @@
+TEMPLATE=subdirs
+
+SUBDIRS = glyphshaping \
+ textperformance
diff --git a/tests/manual/widgets/itemviews/delegate/example.pro b/tests/manual/widgets/itemviews/delegate/delegate.pro
index e9f2189272..e5c90f18ec 100644
--- a/tests/manual/widgets/itemviews/delegate/example.pro
+++ b/tests/manual/widgets/itemviews/delegate/delegate.pro
@@ -1,2 +1,3 @@
TEMPLATE = app
+QT += widgets
SOURCES=example.cpp
diff --git a/tests/manual/windowflags/controllerwindow.cpp b/tests/manual/windowflags/controllerwindow.cpp
index 69535b2856..586691a37d 100644
--- a/tests/manual/windowflags/controllerwindow.cpp
+++ b/tests/manual/windowflags/controllerwindow.cpp
@@ -39,7 +39,14 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets/QMainWindow>
+#include <QtWidgets/QLabel>
+#include <QtWidgets/QPushButton>
+#include <QtWidgets/QRadioButton>
+#include <QtWidgets/QCheckBox>
+#include <QtWidgets/QGroupBox>
+#include <QtWidgets/QApplication>
+#include <QtWidgets/QHBoxLayout>
#include "controllerwindow.h"
@@ -72,7 +79,8 @@ ControllerWindow::ControllerWindow()
mainLayout->addLayout(bottomLayout);
setLayout(mainLayout);
- setWindowTitle(tr("Window Flags"));
+ setWindowTitle(tr("Window Flags (Qt version %1, %2)")
+ .arg(QLatin1String(qVersion()), qApp->platformName()));
updatePreview();
}
diff --git a/tests/manual/windowflags/previewwindow.cpp b/tests/manual/windowflags/previewwindow.cpp
index 601cc50efa..684d1ee1fe 100644
--- a/tests/manual/windowflags/previewwindow.cpp
+++ b/tests/manual/windowflags/previewwindow.cpp
@@ -39,7 +39,9 @@
**
****************************************************************************/
-#include <QtGui>
+#include <QtWidgets/QTextEdit>
+#include <QtWidgets/QPushButton>
+#include <QtWidgets/QVBoxLayout>
#include "previewwindow.h"
diff --git a/tests/manual/windowflags/windowflags.pro b/tests/manual/windowflags/windowflags.pro
index 1b45d0d867..06def212b3 100644
--- a/tests/manual/windowflags/windowflags.pro
+++ b/tests/manual/windowflags/windowflags.pro
@@ -1,3 +1,5 @@
+QT += widgets
+
HEADERS = controllerwindow.h \
previewwindow.h
SOURCES = controllerwindow.cpp \
diff --git a/tests/manual/windowmodality/modality.pro b/tests/manual/windowmodality/windowmodality.pro
index 973579c508..973579c508 100644
--- a/tests/manual/windowmodality/modality.pro
+++ b/tests/manual/windowmodality/windowmodality.pro