Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: Iad459349ea8b4090d79b4771bfff8f656a8a8189
This commit is contained in:
commit
226533fd85
@ -91,10 +91,13 @@ android|uikit|winrt: \
|
||||
# Prevent warnings about object files without any symbols
|
||||
macos: CONFIG += no_warn_empty_obj_files
|
||||
|
||||
# Make sure the doc features are loaded last since they depend on other
|
||||
# features setting up things like includepaths to find everything.
|
||||
CONFIG = prepare_docs qt_docs_targets $$CONFIG
|
||||
|
||||
CONFIG += \
|
||||
utf8_source \
|
||||
create_prl link_prl \
|
||||
prepare_docs qt_docs_targets \
|
||||
no_private_qt_headers_warning QTDIR_build \
|
||||
qt_example_installs \
|
||||
# Qt modules get compiled without exceptions enabled by default.
|
||||
|
@ -406,16 +406,16 @@ public:
|
||||
static QList<T> fromVector(const QVector<T> &vector);
|
||||
QVector<T> toVector() const;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
Q_DECL_DEPRECATED_X("Use QList<T>(set.begin(), set.end()) instead.")
|
||||
#if QT_DEPRECATED_SINCE(5, 14) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
QT_DEPRECATED_X("Use QList<T>(set.begin(), set.end()) instead.")
|
||||
static QList<T> fromSet(const QSet<T> &set);
|
||||
Q_DECL_DEPRECATED_X("Use QSet<T>(list.begin(), list.end()) instead.")
|
||||
QT_DEPRECATED_X("Use QSet<T>(list.begin(), list.end()) instead.")
|
||||
QSet<T> toSet() const;
|
||||
|
||||
Q_DECL_DEPRECATED_X("Use QList<T>(list.begin(), list.end()) instead.")
|
||||
QT_DEPRECATED_X("Use QList<T>(list.begin(), list.end()) instead.")
|
||||
static inline QList<T> fromStdList(const std::list<T> &list)
|
||||
{ return QList<T>(list.begin(), list.end()); }
|
||||
Q_DECL_DEPRECATED_X("Use std::list<T>(list.begin(), list.end()) instead.")
|
||||
QT_DEPRECATED_X("Use std::list<T>(list.begin(), list.end()) instead.")
|
||||
inline std::list<T> toStdList() const
|
||||
{ return std::list<T>(begin(), end()); }
|
||||
#endif
|
||||
|
@ -260,10 +260,10 @@ public:
|
||||
{ QSet<T> result = *this; result -= other; return result; }
|
||||
|
||||
QList<T> values() const;
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
Q_DECL_DEPRECATED_X("Use values() instead.")
|
||||
#if QT_DEPRECATED_SINCE(5, 14) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
QT_DEPRECATED_X("Use values() instead.")
|
||||
QList<T> toList() const { return values(); }
|
||||
Q_DECL_DEPRECATED_X("Use QSet<T>(list.begin(), list.end()) instead.")
|
||||
QT_DEPRECATED_X("Use QSet<T>(list.begin(), list.end()) instead.")
|
||||
static QSet<T> fromList(const QList<T> &list);
|
||||
#endif
|
||||
|
||||
@ -397,7 +397,7 @@ Q_OUTOFLINE_TEMPLATE QList<T> QSet<T>::values() const
|
||||
return result;
|
||||
}
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
#if QT_DEPRECATED_SINCE(5, 14) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
template <typename T>
|
||||
Q_OUTOFLINE_TEMPLATE QSet<T> QList<T>::toSet() const
|
||||
{
|
||||
|
@ -301,11 +301,11 @@ public:
|
||||
static QVector<T> fromList(const QList<T> &list);
|
||||
QList<T> toList() const;
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
Q_DECL_DEPRECATED_X("Use QVector<T>(vector.begin(), vector.end()) instead.")
|
||||
#if QT_DEPRECATED_SINCE(5, 14) && QT_VERSION < QT_VERSION_CHECK(6,0,0)
|
||||
QT_DEPRECATED_X("Use QVector<T>(vector.begin(), vector.end()) instead.")
|
||||
static inline QVector<T> fromStdVector(const std::vector<T> &vector)
|
||||
{ return QVector<T>(vector.begin(), vector.end()); }
|
||||
Q_DECL_DEPRECATED_X("Use std::vector<T>(vector.begin(), vector.end()) instead.")
|
||||
QT_DEPRECATED_X("Use std::vector<T>(vector.begin(), vector.end()) instead.")
|
||||
inline std::vector<T> toStdVector() const
|
||||
{ return std::vector<T>(d->begin(), d->end()); }
|
||||
#endif
|
||||
|
@ -385,7 +385,7 @@ void QWidget::setAutoFillBackground(bool enabled)
|
||||
Every widget's constructor accepts one or two standard arguments:
|
||||
|
||||
\list 1
|
||||
\li \c{QWidget *parent = \nullptr} is the parent of the new widget.
|
||||
\li \c{QWidget *parent = nullptr} is the parent of the new widget.
|
||||
If it is \nullptr (the default), the new widget will be a window.
|
||||
If not, it will be a child of \e parent, and be constrained by
|
||||
\e parent's geometry (unless you specify Qt::Window as window flag).
|
||||
|
@ -713,7 +713,7 @@ void QLCDNumber::paintEvent(QPaintEvent *)
|
||||
void QLCDNumberPrivate::internalSetString(const QString& s)
|
||||
{
|
||||
Q_Q(QLCDNumber);
|
||||
QString buffer;
|
||||
QString buffer(ndigits, QChar());
|
||||
int i;
|
||||
int len = s.length();
|
||||
QBitArray newPoints(ndigits);
|
||||
|
@ -2331,14 +2331,15 @@ void tst_QSettings::testRegistry32And64Bit()
|
||||
|
||||
void tst_QSettings::trailingWhitespace()
|
||||
{
|
||||
const QString path = settingsPath("trailingWhitespace");
|
||||
{
|
||||
QSettings s("tst_QSettings_trailingWhitespace");
|
||||
QSettings s(path, QSettings::IniFormat);
|
||||
s.setValue("trailingSpace", "x ");
|
||||
s.setValue("trailingTab", "x\t");
|
||||
s.setValue("trailingNewline", "x\n");
|
||||
}
|
||||
{
|
||||
QSettings s("tst_QSettings_trailingWhitespace");
|
||||
QSettings s(path, QSettings::IniFormat);
|
||||
QCOMPARE(s.value("trailingSpace").toString(), QLatin1String("x "));
|
||||
QCOMPARE(s.value("trailingTab").toString(), QLatin1String("x\t"));
|
||||
QCOMPARE(s.value("trailingNewline").toString(), QLatin1String("x\n"));
|
||||
|
@ -8,11 +8,6 @@ b2qt
|
||||
opensuse-42.3
|
||||
[restoreVersion1Geometry]
|
||||
ubuntu-16.04
|
||||
[updateWhileMinimized]
|
||||
ubuntu-18.04
|
||||
rhel-7.4
|
||||
ubuntu-16.04
|
||||
rhel-7.6
|
||||
[focusProxyAndInputMethods]
|
||||
rhel-7.6
|
||||
opensuse-leap
|
||||
|
@ -8074,7 +8074,17 @@ void tst_QWidget::updateWhileMinimized()
|
||||
QTest::qWait(10);
|
||||
if (m_platform == QStringLiteral("winrt"))
|
||||
QEXPECT_FAIL("", "WinRT: This fails. QTBUG-68297.", Abort);
|
||||
QCOMPARE(widget.numPaintEvents, 0);
|
||||
int count = 0;
|
||||
// mutter/GNOME Shell doesn't unmap when minimizing window.
|
||||
// More details at https://gitlab.gnome.org/GNOME/mutter/issues/185
|
||||
if (m_platform == QStringLiteral("xcb")) {
|
||||
const QString desktop = qgetenv("XDG_CURRENT_DESKTOP");
|
||||
qDebug() << "xcb: XDG_CURRENT_DESKTOP=" << desktop;
|
||||
if (desktop == QStringLiteral("ubuntu:GNOME")
|
||||
|| desktop == QStringLiteral("GNOME-Classic:GNOME"))
|
||||
count = 1;
|
||||
}
|
||||
QCOMPARE(widget.numPaintEvents, count);
|
||||
|
||||
// Restore window.
|
||||
widget.showNormal();
|
||||
|
Loading…
x
Reference in New Issue
Block a user