Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: Ic13ef00d76c81295076bb2432576db70ec84fe29
This commit is contained in:
commit
7a13a09116
@ -52,21 +52,6 @@
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
//! [Message class implementation]
|
||||
Message::Message()
|
||||
{
|
||||
}
|
||||
|
||||
Message::Message(const Message &other)
|
||||
: m_body(other.m_body), m_headers(other.m_headers)
|
||||
{
|
||||
}
|
||||
|
||||
Message::~Message()
|
||||
{
|
||||
}
|
||||
//! [Message class implementation]
|
||||
|
||||
Message::Message(const QString &body, const QStringList &headers)
|
||||
: m_body(body), m_headers(headers)
|
||||
{
|
||||
|
@ -58,9 +58,10 @@
|
||||
class Message
|
||||
{
|
||||
public:
|
||||
Message();
|
||||
Message(const Message &other);
|
||||
~Message();
|
||||
Message() = default;
|
||||
~Message() = default;
|
||||
Message(const Message &) = default;
|
||||
Message &operator=(const Message &) = default;
|
||||
|
||||
Message(const QString &body, const QStringList &headers);
|
||||
|
||||
|
@ -50,19 +50,6 @@
|
||||
|
||||
#include "message.h"
|
||||
|
||||
Message::Message()
|
||||
{
|
||||
}
|
||||
|
||||
Message::Message(const Message &other)
|
||||
: m_body(other.m_body), m_headers(other.m_headers)
|
||||
{
|
||||
}
|
||||
|
||||
Message::~Message()
|
||||
{
|
||||
}
|
||||
|
||||
Message::Message(const QString &body, const QStringList &headers)
|
||||
: m_body(body), m_headers(headers)
|
||||
{
|
||||
|
@ -58,9 +58,10 @@
|
||||
class Message
|
||||
{
|
||||
public:
|
||||
Message();
|
||||
Message(const Message &other);
|
||||
~Message();
|
||||
Message() = default;
|
||||
~Message() = default;
|
||||
Message(const Message &) = default;
|
||||
Message &operator=(const Message &) = default;
|
||||
|
||||
Message(const QString &body, const QStringList &headers);
|
||||
|
||||
|
@ -81,11 +81,6 @@
|
||||
|
||||
\section1 The Message Class Implementation
|
||||
|
||||
The implementation of the default constructor, copy constructor and destructor
|
||||
are straightforward for the \c Message class:
|
||||
|
||||
\snippet tools/customtype/message.cpp Message class implementation
|
||||
|
||||
The streaming operator is implemented in the following way:
|
||||
|
||||
\snippet tools/customtype/message.cpp custom type streaming operator
|
||||
|
@ -38,6 +38,11 @@
|
||||
#include <double-conversion/strtod.h>
|
||||
#include <double-conversion/utils.h>
|
||||
|
||||
// Fix warning C4244: 'argument': conversion from 'const uc16' to 'char', possible loss of data
|
||||
#ifdef _MSC_VER
|
||||
__pragma(warning(disable: 4244))
|
||||
#endif
|
||||
|
||||
namespace double_conversion {
|
||||
|
||||
const DoubleToStringConverter& DoubleToStringConverter::EcmaScriptConverter() {
|
||||
|
@ -2599,7 +2599,7 @@ void QStateMachine::setGlobalRestorePolicy(QState::RestorePolicy restorePolicy)
|
||||
|
||||
/*!
|
||||
Adds the given \a state to this state machine. The state becomes a top-level
|
||||
state.
|
||||
state and the state machine takes ownership of the state.
|
||||
|
||||
If the state is already in a different machine, it will first be removed
|
||||
from its old machine, and then added to this machine.
|
||||
|
@ -56,8 +56,6 @@ using namespace QRoundingDown;
|
||||
\brief The QMilankovicCalendar class provides Milanković calendar system
|
||||
implementation.
|
||||
|
||||
\section1
|
||||
|
||||
The Revised Julian calendar, also known as the Milanković calendar, or,
|
||||
less formally, new calendar, is a calendar, developed and proposed by the
|
||||
Serbian scientist Milutin Milanković in 1923, which effectively discontinued
|
||||
|
@ -6044,11 +6044,11 @@ static inline void alphargbblend_argb32(quint32 *dst, uint coverage, const QRgba
|
||||
// nothing
|
||||
} else if (coverage == 0xffffffff && qAlpha(src) == 255) {
|
||||
blend_pixel(*dst, src);
|
||||
} else if (!colorProfile) {
|
||||
*dst = rgbBlend(*dst, src, coverage);
|
||||
} else if (*dst < 0xff000000) {
|
||||
// Give up and do a naive gray alphablend. Needed to deal with ARGB32 and invalid ARGB32_premultiplied, see QTBUG-60571
|
||||
blend_pixel(*dst, src, qRgbAvg(coverage));
|
||||
} else if (!colorProfile) {
|
||||
*dst = rgbBlend(*dst, src, coverage);
|
||||
} else if (srcLinear.isOpaque()) {
|
||||
rgbBlendPixel(dst, coverage, srcLinear, colorProfile);
|
||||
} else {
|
||||
|
@ -375,15 +375,6 @@ void QCocoaScreen::deliverUpdateRequests()
|
||||
// it on the main thread yet, because the processing of the update request is taking
|
||||
// too long, or because the update request was deferred due to window live resizing.
|
||||
qDeferredDebug(screenUpdates) << ", " << framesAheadOfDelivery << " frame(s) ahead";
|
||||
|
||||
// We skip the frame completely if we're live-resizing, to not put any extra
|
||||
// strain on the main thread runloop. Otherwise we assume we should push frames
|
||||
// as fast as possible, and hopefully the callback will be delivered on the
|
||||
// main thread just when the previous finished.
|
||||
if (qt_apple_sharedApplication().keyWindow.inLiveResize) {
|
||||
qDeferredDebug(screenUpdates) << "; waiting for main thread to catch up";
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
qDeferredDebug(screenUpdates) << "; signaling dispatch source";
|
||||
|
@ -2481,7 +2481,7 @@ void QWidgetTextControl::setExtraSelections(const QList<QTextEdit::ExtraSelectio
|
||||
{
|
||||
Q_D(QWidgetTextControl);
|
||||
|
||||
QHash<int, int> hash;
|
||||
QMultiHash<int, int> hash;
|
||||
for (int i = 0; i < d->extraSelections.count(); ++i) {
|
||||
const QAbstractTextDocumentLayout::Selection &esel = d->extraSelections.at(i);
|
||||
hash.insert(esel.cursor.anchor(), i);
|
||||
|
@ -1590,6 +1590,9 @@ void tst_QRhi::renderToWindowSimple()
|
||||
QScopedPointer<QWindow> window(new QWindow);
|
||||
switch (impl) {
|
||||
case QRhi::OpenGLES2:
|
||||
#if QT_CONFIG(opengl)
|
||||
window->setFormat(QRhiGles2InitParams::adjustedFormat());
|
||||
#endif
|
||||
Q_FALLTHROUGH();
|
||||
case QRhi::D3D11:
|
||||
window->setSurfaceType(QSurface::OpenGLSurface);
|
||||
|
Loading…
Reference in New Issue
Block a user