Build manual tests.
Add a toplevel manual.pro and other .pro-files to build them and fix the build. Change-Id: Ibc98a27b39dd1304edfa8a6894d62e77ce7ef387 Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
This commit is contained in:
parent
7ed1ab9076
commit
28675642f3
@ -43,6 +43,7 @@
|
|||||||
#include "datatransferer.h"
|
#include "datatransferer.h"
|
||||||
|
|
||||||
#include <QtNetwork>
|
#include <QtNetwork>
|
||||||
|
#include <QtWidgets>
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(QNetworkConfiguration)
|
Q_DECLARE_METATYPE(QNetworkConfiguration)
|
||||||
|
|
||||||
@ -284,7 +285,7 @@ SessionTab::SessionTab(QNetworkConfiguration* apNetworkConfiguration,
|
|||||||
} else if (apNetworkConfiguration->type() == QNetworkConfiguration::ServiceNetwork) {
|
} else if (apNetworkConfiguration->type() == QNetworkConfiguration::ServiceNetwork) {
|
||||||
snapLineEdit->setText(apNetworkConfiguration->name()+" ("+apNetworkConfiguration->identifier()+")");
|
snapLineEdit->setText(apNetworkConfiguration->name()+" ("+apNetworkConfiguration->identifier()+")");
|
||||||
}
|
}
|
||||||
bearerLineEdit->setText(apNetworkConfiguration->bearerName());
|
bearerLineEdit->setText(apNetworkConfiguration->bearerTypeName());
|
||||||
sentRecDataLineEdit->setText(QString::number(m_NetworkSession->bytesWritten())+
|
sentRecDataLineEdit->setText(QString::number(m_NetworkSession->bytesWritten())+
|
||||||
QString(" / ")+
|
QString(" / ")+
|
||||||
QString::number(m_NetworkSession->bytesReceived()));
|
QString::number(m_NetworkSession->bytesReceived()));
|
||||||
@ -314,8 +315,6 @@ void SessionTab::on_createQNetworkAccessManagerButton_clicked()
|
|||||||
m_dataTransferer = new DataTransfererQNam(this);
|
m_dataTransferer = new DataTransfererQNam(this);
|
||||||
} else if (type == "QTcpSocket") {
|
} else if (type == "QTcpSocket") {
|
||||||
m_dataTransferer = new DataTransfererQTcp(this);
|
m_dataTransferer = new DataTransfererQTcp(this);
|
||||||
} else if (type == "QHttp") {
|
|
||||||
m_dataTransferer = new DataTransfererQHttp(this);
|
|
||||||
} else {
|
} else {
|
||||||
qDebug("BearerEx Warning, unknown data transfer object requested, not creating anything.");
|
qDebug("BearerEx Warning, unknown data transfer object requested, not creating anything.");
|
||||||
return;
|
return;
|
||||||
@ -512,10 +511,10 @@ void SessionTab::newState(QNetworkSession::State state)
|
|||||||
QNetworkConfiguration config = m_ConfigManager->configurationFromIdentifier(configId);
|
QNetworkConfiguration config = m_ConfigManager->configurationFromIdentifier(configId);
|
||||||
if (config.isValid()) {
|
if (config.isValid()) {
|
||||||
iapLineEdit->setText(config.name()+" ("+config.identifier()+")");
|
iapLineEdit->setText(config.name()+" ("+config.identifier()+")");
|
||||||
bearerLineEdit->setText(config.bearerName());
|
bearerLineEdit->setText(config.bearerTypeName());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bearerLineEdit->setText(m_NetworkSession->configuration().bearerName());
|
bearerLineEdit->setText(m_NetworkSession->configuration().bearerTypeName());
|
||||||
}
|
}
|
||||||
|
|
||||||
QString active;
|
QString active;
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#ifndef ACCESSPOINTMANAGEREX_H
|
#ifndef ACCESSPOINTMANAGEREX_H
|
||||||
#define ACCESSPOINTMANAGEREX_H
|
#define ACCESSPOINTMANAGEREX_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "ui_detailedinfodialog.h"
|
#include "ui_detailedinfodialog.h"
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ TARGET = BearerEx
|
|||||||
|
|
||||||
QT += core \
|
QT += core \
|
||||||
gui \
|
gui \
|
||||||
|
widgets \
|
||||||
network
|
network
|
||||||
|
|
||||||
FORMS += detailedinfodialog.ui
|
FORMS += detailedinfodialog.ui
|
||||||
|
@ -134,47 +134,6 @@ void DataTransfererQTcp::error(QAbstractSocket::SocketError socketError)
|
|||||||
emit finished(socketError, 0, "QAbstractSocket::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
|
// -------- Based on QNetworkAccessManager
|
||||||
|
|
||||||
DataTransfererQNam::DataTransfererQNam(QObject* parent)
|
DataTransfererQNam::DataTransfererQNam(QObject* parent)
|
||||||
|
@ -47,7 +47,6 @@
|
|||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
#include <QTcpSocket>
|
#include <QTcpSocket>
|
||||||
#include <QHttp>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
// Interface-class for data transferring object
|
// Interface-class for data transferring object
|
||||||
@ -111,20 +110,4 @@ private:
|
|||||||
QNetworkAccessManager m_qnam;
|
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
|
#endif // DATATRANSFERER_H
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
#include <QBackingStore>
|
#include <QBackingStore>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
static int colorIndexId = 0;
|
static int colorIndexId = 0;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
#include <QBackingStore>
|
#include <QBackingStore>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
static int colorIndexId = 0;
|
static int colorIndexId = 0;
|
||||||
|
|
||||||
|
4
tests/manual/gestures/gestures.pro
Normal file
4
tests/manual/gestures/gestures.pro
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TEMPLATE=subdirs
|
||||||
|
|
||||||
|
SUBDIRS = graphicsview \
|
||||||
|
scrollarea
|
@ -1,3 +1,5 @@
|
|||||||
|
QT += widgets
|
||||||
|
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
imageitem.cpp \
|
imageitem.cpp \
|
||||||
gestures.cpp \
|
gestures.cpp \
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "imageitem.h"
|
#include "imageitem.h"
|
||||||
#include "gestures.h"
|
#include "gestures.h"
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "mousepangesturerecognizer.h"
|
#include "mousepangesturerecognizer.h"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
QT += widgets
|
||||||
|
|
||||||
SOURCES = main.cpp \
|
SOURCES = main.cpp \
|
||||||
mousepangesturerecognizer.cpp
|
mousepangesturerecognizer.cpp
|
||||||
HEADERS += mousepangesturerecognizer.h
|
HEADERS += mousepangesturerecognizer.h
|
||||||
|
@ -42,8 +42,8 @@
|
|||||||
#ifndef INPUTMETHODHINTS_H
|
#ifndef INPUTMETHODHINTS_H
|
||||||
#define INPUTMETHODHINTS_H
|
#define INPUTMETHODHINTS_H
|
||||||
|
|
||||||
#include <QtGui/QMainWindow>
|
#include <QtWidgets/QMainWindow>
|
||||||
#include "ui_tst_inputmethodhints.h"
|
#include "ui_inputmethodhints.h"
|
||||||
|
|
||||||
class inputmethodhints : public QMainWindow
|
class inputmethodhints : public QMainWindow
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = tst_inputmethodhints
|
TARGET = tst_inputmethodhints
|
||||||
|
|
||||||
QT += core \
|
QT += widgets
|
||||||
gui
|
|
||||||
|
|
||||||
HEADERS += inputmethodhints.h
|
HEADERS += inputmethodhints.h
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
#include "inputmethodhints.h"
|
#include "inputmethodhints.h"
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
FORMS += keypadnavigation.ui
|
FORMS += keypadnavigation.ui
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "ui_keypadnavigation.h"
|
#include "ui_keypadnavigation.h"
|
||||||
|
|
||||||
class KeypadNavigation : public QMainWindow
|
class KeypadNavigation : public QMainWindow
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "interactivewidget.h"
|
#include "interactivewidget.h"
|
||||||
#include <QtGui/QToolBox>
|
#include <QtWidgets>
|
||||||
|
|
||||||
InteractiveWidget::InteractiveWidget()
|
InteractiveWidget::InteractiveWidget()
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
#include "widgets.h"
|
#include "widgets.h"
|
||||||
#include "paintcommands.h"
|
#include "paintcommands.h"
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QMainWindow>
|
||||||
|
|
||||||
#include <private/qmath_p.h>
|
#include <private/qmath_p.h>
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
LANCELOT_DIR = $$PWD/../../auto/lancelot
|
LANCELOT_DIR = $$PWD/../../auto/other/lancelot
|
||||||
CONFIG+=console moc
|
CONFIG+=console moc
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
INCLUDEPATH += . $$LANCELOT_DIR
|
INCLUDEPATH += . $$LANCELOT_DIR
|
||||||
QT += core-private gui-private
|
QT += core-private gui-private widgets printsupport
|
||||||
|
|
||||||
HEADERS += widgets.h \
|
HEADERS += widgets.h \
|
||||||
interactivewidget.h \
|
interactivewidget.h \
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
#include "paintcommands.h"
|
#include "paintcommands.h"
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
#include <QtPrintSupport>
|
||||||
#include <qimage.h>
|
#include <qimage.h>
|
||||||
#include <QPicture>
|
#include <QPicture>
|
||||||
|
|
||||||
@ -612,14 +613,11 @@ int main(int argc, char **argv)
|
|||||||
pcmd.setType(type);
|
pcmd.setType(type);
|
||||||
pcmd.setCheckersBackground(checkers_background);
|
pcmd.setCheckersBackground(checkers_background);
|
||||||
pcmd.setContents(content);
|
pcmd.setContents(content);
|
||||||
bool ps = type == PsType;
|
|
||||||
QPrinter p(highres ? QPrinter::HighResolution : QPrinter::ScreenResolution);
|
QPrinter p(highres ? QPrinter::HighResolution : QPrinter::ScreenResolution);
|
||||||
QFileInfo input(files.at(j));
|
QFileInfo input(files.at(j));
|
||||||
QString file = QString("%1_%2.%3")
|
const QString file = input.baseName() + QLatin1Char('_')
|
||||||
.arg(input.baseName())
|
+ input.suffix() + QStringLiteral(".pdf");
|
||||||
.arg(input.suffix())
|
p.setOutputFormat(QPrinter::PdfFormat);
|
||||||
.arg(ps ? "ps" : "pdf");
|
|
||||||
p.setOutputFormat(ps ? QPrinter::PdfFormat : QPrinter::PostScriptFormat);
|
|
||||||
p.setOutputFileName(file);
|
p.setOutputFileName(file);
|
||||||
p.setPageSize(QPrinter::A4);
|
p.setPageSize(QPrinter::A4);
|
||||||
QPainter pt(&p);
|
QPainter pt(&p);
|
||||||
|
@ -59,9 +59,6 @@
|
|||||||
#include <QSignalMapper>
|
#include <QSignalMapper>
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
|
|
||||||
|
|
||||||
#include <private/qwindowsurface_p.h>
|
|
||||||
|
|
||||||
#include <qmath.h>
|
#include <qmath.h>
|
||||||
|
|
||||||
const int CP_RADIUS = 10;
|
const int CP_RADIUS = 10;
|
||||||
@ -236,12 +233,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_render_view.isNull()) {
|
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");
|
m_render_view.save("renderView.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
32
tests/manual/manual.pro
Normal file
32
tests/manual/manual.pro
Normal file
@ -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
|
@ -1,9 +1,10 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_network_remote_stresstest
|
TARGET = tst_network_remote_stresstest
|
||||||
|
|
||||||
QT = core network testlib
|
QT = core core-private network network-private testlib
|
||||||
|
|
||||||
SOURCES += tst_network_remote_stresstest.cpp
|
SOURCES += tst_network_remote_stresstest.cpp
|
||||||
|
|
||||||
RESOURCES += url-list.qrc
|
RESOURCES += url-list.qrc
|
||||||
|
|
||||||
|
LIBS += $$QMAKE_LIBS_NETWORK
|
||||||
|
@ -235,6 +235,10 @@ void tst_NetworkRemoteStressTest::blockingSequentialRemoteHosts()
|
|||||||
QElapsedTimer outerTimer;
|
QElapsedTimer outerTimer;
|
||||||
outerTimer.start();
|
outerTimer.start();
|
||||||
|
|
||||||
|
#ifdef QT_NO_SSL
|
||||||
|
QVERIFY(!useSslSocket);
|
||||||
|
#endif // QT_NO_SSL
|
||||||
|
|
||||||
for (int i = 0; i < urlList.size(); ++i) {
|
for (int i = 0; i < urlList.size(); ++i) {
|
||||||
const QUrl &url = urlList.at(i);
|
const QUrl &url = urlList.at(i);
|
||||||
bool isHttps = url.scheme() == "https";
|
bool isHttps = url.scheme() == "https";
|
||||||
@ -243,21 +247,24 @@ void tst_NetworkRemoteStressTest::blockingSequentialRemoteHosts()
|
|||||||
timeout.start();
|
timeout.start();
|
||||||
|
|
||||||
QSharedPointer<QTcpSocket> socket;
|
QSharedPointer<QTcpSocket> socket;
|
||||||
if (useSslSocket || isHttps) {
|
#ifndef QT_NO_SSL
|
||||||
|
if (useSslSocket || isHttps)
|
||||||
socket = QSharedPointer<QTcpSocket>(new QSslSocket);
|
socket = QSharedPointer<QTcpSocket>(new QSslSocket);
|
||||||
} else {
|
#endif // QT_NO_SSL
|
||||||
|
if (socket.isNull())
|
||||||
socket = QSharedPointer<QTcpSocket>(new QTcpSocket);
|
socket = QSharedPointer<QTcpSocket>(new QTcpSocket);
|
||||||
}
|
|
||||||
|
|
||||||
socket->connectToHost(url.host(), url.port(isHttps ? 443 : 80));
|
socket->connectToHost(url.host(), url.port(isHttps ? 443 : 80));
|
||||||
QVERIFY2(socket->waitForConnected(10000), "Timeout connecting to " + url.encodedHost());
|
QVERIFY2(socket->waitForConnected(10000), "Timeout connecting to " + url.encodedHost());
|
||||||
|
|
||||||
|
#ifndef QT_NO_SSL
|
||||||
if (isHttps) {
|
if (isHttps) {
|
||||||
static_cast<QSslSocket *>(socket.data())->setProtocol(QSsl::TlsV1_0);
|
static_cast<QSslSocket *>(socket.data())->setProtocol(QSsl::TlsV1_0);
|
||||||
static_cast<QSslSocket *>(socket.data())->startClientEncryption();
|
static_cast<QSslSocket *>(socket.data())->startClientEncryption();
|
||||||
static_cast<QSslSocket *>(socket.data())->ignoreSslErrors();
|
static_cast<QSslSocket *>(socket.data())->ignoreSslErrors();
|
||||||
QVERIFY2(static_cast<QSslSocket *>(socket.data())->waitForEncrypted(10000), "Timeout starting TLS with " + url.encodedHost());
|
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"
|
socket->write("GET " + url.toEncoded(QUrl::RemoveScheme | QUrl::RemoveAuthority | QUrl::RemoveFragment) + " HTTP/1.0\r\n"
|
||||||
"Connection: close\r\n"
|
"Connection: close\r\n"
|
||||||
@ -288,6 +295,10 @@ void tst_NetworkRemoteStressTest::sequentialRemoteHosts()
|
|||||||
QFETCH_GLOBAL(QVector<QUrl>, urlList);
|
QFETCH_GLOBAL(QVector<QUrl>, urlList);
|
||||||
QFETCH_GLOBAL(bool, useSslSocket);
|
QFETCH_GLOBAL(bool, useSslSocket);
|
||||||
|
|
||||||
|
#ifdef QT_NO_SSL
|
||||||
|
QVERIFY(!useSslSocket);
|
||||||
|
#endif // QT_NO_SSL
|
||||||
|
|
||||||
qint64 totalBytes = 0;
|
qint64 totalBytes = 0;
|
||||||
QElapsedTimer outerTimer;
|
QElapsedTimer outerTimer;
|
||||||
outerTimer.start();
|
outerTimer.start();
|
||||||
@ -300,15 +311,18 @@ void tst_NetworkRemoteStressTest::sequentialRemoteHosts()
|
|||||||
timeout.start();
|
timeout.start();
|
||||||
|
|
||||||
QSharedPointer<QTcpSocket> socket;
|
QSharedPointer<QTcpSocket> socket;
|
||||||
if (useSslSocket || isHttps) {
|
#ifndef QT_NO_SSL
|
||||||
|
if (useSslSocket || isHttps)
|
||||||
socket = QSharedPointer<QTcpSocket>(new QSslSocket);
|
socket = QSharedPointer<QTcpSocket>(new QSslSocket);
|
||||||
} else {
|
#endif // QT_NO_SSL
|
||||||
|
if (socket.isNull())
|
||||||
socket = QSharedPointer<QTcpSocket>(new QTcpSocket);
|
socket = QSharedPointer<QTcpSocket>(new QTcpSocket);
|
||||||
}
|
|
||||||
if (isHttps) {
|
if (isHttps) {
|
||||||
|
#ifndef QT_NO_SSL
|
||||||
static_cast<QSslSocket *>(socket.data())->setProtocol(QSsl::TlsV1_0);
|
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())->connectToHostEncrypted(url.host(), url.port(443));
|
||||||
static_cast<QSslSocket *>(socket.data())->ignoreSslErrors();
|
static_cast<QSslSocket *>(socket.data())->ignoreSslErrors();
|
||||||
|
#endif // QT_NO_SSL
|
||||||
} else {
|
} else {
|
||||||
socket->connectToHost(url.host(), url.port(80));
|
socket->connectToHost(url.host(), url.port(80));
|
||||||
}
|
}
|
||||||
@ -356,6 +370,10 @@ void tst_NetworkRemoteStressTest::parallelRemoteHosts()
|
|||||||
|
|
||||||
QFETCH(int, parallelAttempts);
|
QFETCH(int, parallelAttempts);
|
||||||
|
|
||||||
|
#ifdef QT_NO_SSL
|
||||||
|
QVERIFY(!useSslSocket);
|
||||||
|
#endif // QT_NO_SSL
|
||||||
|
|
||||||
qint64 totalBytes = 0;
|
qint64 totalBytes = 0;
|
||||||
QElapsedTimer outerTimer;
|
QElapsedTimer outerTimer;
|
||||||
outerTimer.start();
|
outerTimer.start();
|
||||||
@ -371,15 +389,19 @@ void tst_NetworkRemoteStressTest::parallelRemoteHosts()
|
|||||||
for (int j = 0; j < parallelAttempts && it != urlList.constEnd(); ++j, ++it) {
|
for (int j = 0; j < parallelAttempts && it != urlList.constEnd(); ++j, ++it) {
|
||||||
const QUrl &url = *it;
|
const QUrl &url = *it;
|
||||||
bool isHttps = url.scheme() == "https";
|
bool isHttps = url.scheme() == "https";
|
||||||
QTcpSocket *socket;
|
QTcpSocket *socket = 0;
|
||||||
|
#ifndef QT_NO_SSL
|
||||||
if (useSslSocket || isHttps)
|
if (useSslSocket || isHttps)
|
||||||
socket = new QSslSocket;
|
socket = new QSslSocket;
|
||||||
else
|
#endif // QT_NO_SSL
|
||||||
|
if (!socket)
|
||||||
socket = new QTcpSocket;
|
socket = new QTcpSocket;
|
||||||
if (isHttps) {
|
if (isHttps) {
|
||||||
|
#ifndef QT_NO_SSL
|
||||||
static_cast<QSslSocket *>(socket)->setProtocol(QSsl::TlsV1_0);
|
static_cast<QSslSocket *>(socket)->setProtocol(QSsl::TlsV1_0);
|
||||||
static_cast<QSslSocket *>(socket)->connectToHostEncrypted(url.host(), url.port(443));
|
static_cast<QSslSocket *>(socket)->connectToHostEncrypted(url.host(), url.port(443));
|
||||||
static_cast<QSslSocket *>(socket)->ignoreSslErrors();
|
static_cast<QSslSocket *>(socket)->ignoreSslErrors();
|
||||||
|
#endif // QT_NO_SSL
|
||||||
} else {
|
} else {
|
||||||
socket->connectToHost(url.host(), url.port(isHttps ? 443 : 80));
|
socket->connectToHost(url.host(), url.port(isHttps ? 443 : 80));
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_network_stresstest
|
TARGET = tst_network_stresstest
|
||||||
|
|
||||||
QT = core network testlib
|
QT = core-private network-private testlib
|
||||||
|
|
||||||
SOURCES += tst_network_stresstest.cpp \
|
SOURCES += tst_network_stresstest.cpp \
|
||||||
minihttpserver.cpp
|
minihttpserver.cpp
|
||||||
@ -11,3 +11,4 @@ HEADERS += \
|
|||||||
|
|
||||||
RESOURCES += wwwfiles.qrc
|
RESOURCES += wwwfiles.qrc
|
||||||
QMAKE_RESOURCE_FLAGS += -no-compress
|
QMAKE_RESOURCE_FLAGS += -no-compress
|
||||||
|
LIBS += $$QMAKE_LIBS_NETWORK
|
||||||
|
@ -338,13 +338,13 @@ void tst_NetworkStressTest::nativeNonBlockingConnectDisconnect()
|
|||||||
QVERIFY(fd != INVALID_SOCKET);
|
QVERIFY(fd != INVALID_SOCKET);
|
||||||
|
|
||||||
// set the socket to non-blocking and start connecting
|
// set the socket to non-blocking and start connecting
|
||||||
unsigned long buf = v;
|
unsigned long buf = 0;
|
||||||
unsigned long outBuf;
|
unsigned long outBuf;
|
||||||
DWORD sizeWritten = 0;
|
DWORD sizeWritten = 0;
|
||||||
QVERIFY(::WSAIoctl(fd, FIONBIO, &buf, sizeof(unsigned long), &outBuf, sizeof(unsigned long), &sizeWritten, 0,0) != SOCKET_ERROR);
|
QVERIFY(::WSAIoctl(fd, FIONBIO, &buf, sizeof(unsigned long), &outBuf, sizeof(unsigned long), &sizeWritten, 0,0) != SOCKET_ERROR);
|
||||||
|
|
||||||
while (true) {
|
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) {
|
if (connectResult == 0 || WSAGetLastError() == WSAEISCONN) {
|
||||||
break; // connected
|
break; // connected
|
||||||
} else {
|
} else {
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class DesktopView : public QGraphicsView
|
class DesktopView : public QGraphicsView
|
||||||
{
|
{
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
QT += widgets
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
TARGET = qgraphicsitemgroup
|
TARGET = qgraphicsitemgroup
|
||||||
|
QT += widgets
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
widget.cpp \
|
widget.cpp \
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS += window.h
|
HEADERS += window.h
|
||||||
SOURCES += main.cpp window.cpp
|
SOURCES += main.cpp window.cpp
|
||||||
|
@ -39,8 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include <windows.h>
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#define WINDOW_H
|
#define WINDOW_H
|
||||||
|
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
struct Statistics {
|
struct Statistics {
|
||||||
Statistics() : output(0),
|
Statistics() : output(0),
|
||||||
|
@ -5,6 +5,4 @@ TARGET = tst_qhttpnetworkconnection
|
|||||||
QT -= gui
|
QT -= gui
|
||||||
QT += network testlib
|
QT += network testlib
|
||||||
|
|
||||||
CONFIG += release
|
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class MyWidget : public QWidget
|
class MyWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
QT += widgets
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "calendar.h"
|
#include "calendar.h"
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef CALENDAR_H
|
#ifndef CALENDAR_H
|
||||||
#define CALENDAR_H
|
#define CALENDAR_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class CalendarWidget : public QWidget
|
class CalendarWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef CURRENCY_H
|
#ifndef CURRENCY_H
|
||||||
#define CURRENCY_H
|
#define CURRENCY_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class CurrencyWidget : public QWidget
|
class CurrencyWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef DATEFORMATS_H
|
#ifndef DATEFORMATS_H
|
||||||
#define DATEFORMATS_H
|
#define DATEFORMATS_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class DateFormatsWidget : public QWidget
|
class DateFormatsWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef INFO_H
|
#ifndef INFO_H
|
||||||
#define INFO_H
|
#define INFO_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class InfoWidget : public QWidget
|
class InfoWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef LANGUAGES_H
|
#ifndef LANGUAGES_H
|
||||||
#define LANGUAGES_H
|
#define LANGUAGES_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class LanguagesWidget : public QWidget
|
class LanguagesWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "window.h"
|
#include "window.h"
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef MISCELLANEOUS_H
|
#ifndef MISCELLANEOUS_H
|
||||||
#define MISCELLANEOUS_H
|
#define MISCELLANEOUS_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class MiscWidget : public QWidget
|
class MiscWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef NUMBERFORMATS_H
|
#ifndef NUMBERFORMATS_H
|
||||||
#define NUMBERFORMATS_H
|
#define NUMBERFORMATS_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class NumberFormatsWidget : public QWidget
|
class NumberFormatsWidget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS += currency.h calendar.h dateformats.h numberformats.h languages.h window.h miscellaneous.h info.h
|
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
|
SOURCES += currency.cpp main.cpp calendar.cpp dateformats.cpp numberformats.cpp languages.cpp window.cpp miscellaneous.cpp info.cpp
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#ifndef WINDOW_H
|
#ifndef WINDOW_H
|
||||||
#define WINDOW_H
|
#define WINDOW_H
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
#include "calendar.h"
|
#include "calendar.h"
|
||||||
#include "currency.h"
|
#include "currency.h"
|
||||||
|
@ -113,7 +113,9 @@ private slots:
|
|||||||
void finished(QNetworkReply *reply);
|
void finished(QNetworkReply *reply);
|
||||||
void authenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
|
void authenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
|
||||||
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator);
|
void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *authenticator);
|
||||||
|
#ifndef QT_NO_SSL
|
||||||
void sslErrors(QNetworkReply *reply, const QList<QSslError> &errors);
|
void sslErrors(QNetworkReply *reply, const QList<QSslError> &errors);
|
||||||
|
#endif
|
||||||
void downloadFinished(TransferItem *item);
|
void downloadFinished(TransferItem *item);
|
||||||
private:
|
private:
|
||||||
TransferItem *findTransfer(QNetworkReply *reply);
|
TransferItem *findTransfer(QNetworkReply *reply);
|
||||||
|
@ -5,6 +5,4 @@ TARGET = tst_qnetworkconfigurationmanager
|
|||||||
QT -= gui
|
QT -= gui
|
||||||
QT += network testlib
|
QT += network testlib
|
||||||
|
|
||||||
CONFIG += release
|
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -5,6 +5,4 @@ TARGET = tst_qnetworkreply
|
|||||||
QT -= gui
|
QT -= gui
|
||||||
QT += network testlib
|
QT += network testlib
|
||||||
|
|
||||||
CONFIG += release
|
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
QT += widgets
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
main.cpp \
|
main.cpp \
|
||||||
tabletwidget.cpp
|
tabletwidget.cpp
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QApplication>
|
||||||
#include "tabletwidget.h"
|
#include "tabletwidget.h"
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
QT += testlib
|
QT += widgets testlib
|
||||||
|
|
||||||
SOURCES += main.cpp \
|
SOURCES += main.cpp \
|
||||||
mousestatwidget.cpp
|
mousestatwidget.cpp
|
||||||
|
5
tests/manual/qtabletevent/qtabletevent.pro
Normal file
5
tests/manual/qtabletevent/qtabletevent.pro
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
TEMPLATE=subdirs
|
||||||
|
|
||||||
|
SUBDIRS = device_information \
|
||||||
|
event_compression \
|
||||||
|
regular_widgets
|
@ -1,3 +1,4 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
QT += widgets
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui/QApplication>
|
#include <QtWidgets/QApplication>
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
TARGET = qtbug-8933
|
TARGET = qtbug-8933
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
QT += widgets
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
SOURCES += main.cpp\
|
||||||
widget.cpp
|
widget.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
|
||||||
#include "ui_form.h"
|
#include "ui_form.h"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
QT += testlib
|
QT += widgets testlib
|
||||||
SOURCES = main.cpp \
|
SOURCES = main.cpp \
|
||||||
touchwidget.cpp
|
touchwidget.cpp
|
||||||
FORMS += form.ui
|
FORMS += form.ui
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
class Widget : public QWidget
|
class Widget : public QWidget
|
||||||
{
|
{
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
QT += widgets
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "../shared/shared.h"
|
#include "../shared/shared.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS += ../shared/shared.h
|
HEADERS += ../shared/shared.h
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
9
tests/manual/repaint/repaint.pro
Normal file
9
tests/manual/repaint/repaint.pro
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
TEMPLATE=subdirs
|
||||||
|
|
||||||
|
SUBDIRS = mainwindow \
|
||||||
|
scrollarea \
|
||||||
|
splitter \
|
||||||
|
tableview \
|
||||||
|
task141091 \
|
||||||
|
toplevel \
|
||||||
|
widget
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "../shared/shared.h"
|
#include "../shared/shared.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS += ../shared/shared.h
|
HEADERS += ../shared/shared.h
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
class StaticWidget : public QWidget
|
class StaticWidget : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "../shared/shared.h"
|
#include "../shared/shared.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS += ../shared/shared.h
|
HEADERS += ../shared/shared.h
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "../shared/shared.h"
|
#include "../shared/shared.h"
|
||||||
|
|
||||||
class CellWidget : public QWidget
|
class CellWidget : public QWidget
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS +=../shared/shared.h
|
HEADERS +=../shared/shared.h
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
class MyWidget : public QWidget
|
class MyWidget : public QWidget
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
CONFIG += console
|
CONFIG += console
|
||||||
|
QT += widgets
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "../shared/shared.h"
|
#include "../shared/shared.h"
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
CONFIG += console
|
CONFIG += console
|
||||||
|
QT += widgets
|
||||||
|
|
||||||
HEADERS += ../shared/shared.h
|
HEADERS += ../shared/shared.h
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
#include "../shared/shared.h"
|
#include "../shared/shared.h"
|
||||||
|
|
||||||
class Child : public StaticWidget
|
class Child : public StaticWidget
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
QT += widgets
|
||||||
HEADERS += ../shared/shared.h
|
HEADERS += ../shared/shared.h
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -49,7 +49,6 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <private/qabstractsocketengine_p.h>
|
#include <private/qabstractsocketengine_p.h>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <strings.h>
|
|
||||||
#include <QNetworkConfigurationManager>
|
#include <QNetworkConfigurationManager>
|
||||||
#include <QNetworkConfiguration>
|
#include <QNetworkConfiguration>
|
||||||
#include <QNetworkSession>
|
#include <QNetworkSession>
|
||||||
@ -97,7 +96,7 @@ int main(int argc, char**argv)
|
|||||||
// disconnected
|
// disconnected
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
bzero(buf, bufsize);
|
qFill(buf, buf + bufsize, 0);
|
||||||
ret = socketEngine->read(buf, available);
|
ret = socketEngine->read(buf, available);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
printf("%s", buf);
|
printf("%s", buf);
|
||||||
|
@ -3,8 +3,6 @@ TEMPLATE = app
|
|||||||
TARGET = tst_socketengine
|
TARGET = tst_socketengine
|
||||||
|
|
||||||
QT -= gui
|
QT -= gui
|
||||||
QT += network testlib
|
QT += network-private core-private testlib
|
||||||
|
|
||||||
CONFIG += release
|
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
QT += widgets
|
||||||
SOURCES = main.cpp
|
SOURCES = main.cpp
|
||||||
OTHER_FILES = glyphshaping_data.xml
|
OTHER_FILES = glyphshaping_data.xml
|
||||||
glyphshaping_data.path = .
|
glyphshaping_data.path = .
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
static const int fontPixelSize = 25;
|
static const int fontPixelSize = 25;
|
||||||
static const QLatin1String fontFamily("Series 60 Sans");
|
static const QLatin1String fontFamily("Series 60 Sans");
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets>
|
||||||
|
|
||||||
static const int lastMeasurementsCount = 50;
|
static const int lastMeasurementsCount = 50;
|
||||||
|
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
QT += widgets
|
||||||
SOURCES = main.cpp
|
SOURCES = main.cpp
|
||||||
|
4
tests/manual/textrendering/textrendering.pro
Normal file
4
tests/manual/textrendering/textrendering.pro
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TEMPLATE=subdirs
|
||||||
|
|
||||||
|
SUBDIRS = glyphshaping \
|
||||||
|
textperformance
|
@ -1,2 +1,3 @@
|
|||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
QT += widgets
|
||||||
SOURCES=example.cpp
|
SOURCES=example.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"
|
#include "controllerwindow.h"
|
||||||
|
|
||||||
@ -72,7 +79,8 @@ ControllerWindow::ControllerWindow()
|
|||||||
mainLayout->addLayout(bottomLayout);
|
mainLayout->addLayout(bottomLayout);
|
||||||
setLayout(mainLayout);
|
setLayout(mainLayout);
|
||||||
|
|
||||||
setWindowTitle(tr("Window Flags"));
|
setWindowTitle(tr("Window Flags (Qt version %1, %2)")
|
||||||
|
.arg(QLatin1String(qVersion()), qApp->platformName()));
|
||||||
updatePreview();
|
updatePreview();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +39,9 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtGui>
|
#include <QtWidgets/QTextEdit>
|
||||||
|
#include <QtWidgets/QPushButton>
|
||||||
|
#include <QtWidgets/QVBoxLayout>
|
||||||
|
|
||||||
#include "previewwindow.h"
|
#include "previewwindow.h"
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
QT += widgets
|
||||||
|
|
||||||
HEADERS = controllerwindow.h \
|
HEADERS = controllerwindow.h \
|
||||||
previewwindow.h
|
previewwindow.h
|
||||||
SOURCES = controllerwindow.cpp \
|
SOURCES = controllerwindow.cpp \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user