Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: I6c81e3cb6272adc5c3de2513792bd48604ff4dd0
This commit is contained in:
commit
c75e8a6618
@ -258,6 +258,7 @@ Network options:
|
|||||||
-no-openssl .......... Do not use OpenSSL [default on Apple and WinRT]
|
-no-openssl .......... Do not use OpenSSL [default on Apple and WinRT]
|
||||||
-openssl-linked ...... Use OpenSSL and link to libssl [no]
|
-openssl-linked ...... Use OpenSSL and link to libssl [no]
|
||||||
-openssl-runtime ..... Use OpenSSL and dynamically load libssl [auto]
|
-openssl-runtime ..... Use OpenSSL and dynamically load libssl [auto]
|
||||||
|
-schannel ............ Use Secure Channel [no] (Windows only)
|
||||||
-securetransport ..... Use SecureTransport [auto] (Apple only)
|
-securetransport ..... Use SecureTransport [auto] (Apple only)
|
||||||
|
|
||||||
-sctp ................ Enable SCTP support [no]
|
-sctp ................ Enable SCTP support [no]
|
||||||
|
@ -776,12 +776,12 @@
|
|||||||
},
|
},
|
||||||
"debug": {
|
"debug": {
|
||||||
"label": "Build for debugging",
|
"label": "Build for debugging",
|
||||||
"autoDetect": "features.developer-build || config.win32 || config.darwin"
|
"autoDetect": "features.developer-build || (config.win32 && !config.gcc) || config.darwin"
|
||||||
},
|
},
|
||||||
"debug_and_release": {
|
"debug_and_release": {
|
||||||
"label": "Compile libs in debug and release mode",
|
"label": "Compile libs in debug and release mode",
|
||||||
"autoDetect": "input.debug == ''",
|
"autoDetect": "input.debug == '' && !(config.win32 && config.gcc)",
|
||||||
"condition": "config.darwin || (config.win32 && !config.gcc)",
|
"condition": "config.darwin || config.win32",
|
||||||
"output": [ "publicFeature", "publicQtConfig", "debugAndRelease" ]
|
"output": [ "publicFeature", "publicQtConfig", "debugAndRelease" ]
|
||||||
},
|
},
|
||||||
"force_debug_info": {
|
"force_debug_info": {
|
||||||
|
@ -72,10 +72,19 @@ function(_qt5_$${CMAKE_MODULE_NAME}_process_prl_file prl_file_location Configura
|
|||||||
string(REGEX REPLACE \"QMAKE_PRL_LIBS_FOR_CMAKE[ \\t]*=[ \\t]*([^\\n]*)\" \"\\\\1\" _static_depends \"${_prl_strings}\")
|
string(REGEX REPLACE \"QMAKE_PRL_LIBS_FOR_CMAKE[ \\t]*=[ \\t]*([^\\n]*)\" \"\\\\1\" _static_depends \"${_prl_strings}\")
|
||||||
string(REGEX REPLACE \"[ \\t]+\" \";\" _standard_libraries \"${CMAKE_CXX_STANDARD_LIBRARIES}\")
|
string(REGEX REPLACE \"[ \\t]+\" \";\" _standard_libraries \"${CMAKE_CXX_STANDARD_LIBRARIES}\")
|
||||||
set(_search_paths)
|
set(_search_paths)
|
||||||
|
set(_framework_flag)
|
||||||
string(REPLACE \"\\$\\$[QT_INSTALL_LIBS]\" \"${_qt5_install_libs}\" _static_depends \"${_static_depends}\")
|
string(REPLACE \"\\$\\$[QT_INSTALL_LIBS]\" \"${_qt5_install_libs}\" _static_depends \"${_static_depends}\")
|
||||||
foreach(_flag ${_static_depends})
|
foreach(_flag ${_static_depends})
|
||||||
string(REPLACE \"\\\"\" \"\" _flag ${_flag})
|
string(REPLACE \"\\\"\" \"\" _flag ${_flag})
|
||||||
if(_flag MATCHES \"^-l(.*)$\")
|
if(_flag MATCHES \"^-framework$\")
|
||||||
|
# Handle the next flag as framework name
|
||||||
|
set(_framework_flag 1)
|
||||||
|
elseif(_framework_flag OR _flag MATCHES \"^-l(.*)$\")
|
||||||
|
if(_framework_flag)
|
||||||
|
# Handle Darwin framework bundles passed as -framework Foo
|
||||||
|
unset(_framework_flag)
|
||||||
|
set(_lib ${_flag})
|
||||||
|
else()
|
||||||
# Handle normal libraries passed as -lfoo
|
# Handle normal libraries passed as -lfoo
|
||||||
set(_lib \"${CMAKE_MATCH_1}\")
|
set(_lib \"${CMAKE_MATCH_1}\")
|
||||||
foreach(_standard_library ${_standard_libraries})
|
foreach(_standard_library ${_standard_libraries})
|
||||||
@ -84,6 +93,7 @@ function(_qt5_$${CMAKE_MODULE_NAME}_process_prl_file prl_file_location Configura
|
|||||||
break()
|
break()
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
endif()
|
||||||
if (_lib_is_default_linked)
|
if (_lib_is_default_linked)
|
||||||
unset(_lib_is_default_linked)
|
unset(_lib_is_default_linked)
|
||||||
elseif(_lib MATCHES \"^pthread$\")
|
elseif(_lib MATCHES \"^pthread$\")
|
||||||
|
@ -5,7 +5,7 @@ defineReplace(qtPlatformTargetSuffix) {
|
|||||||
else: CONFIG(debug, debug|release) {
|
else: CONFIG(debug, debug|release) {
|
||||||
!debug_and_release|build_pass {
|
!debug_and_release|build_pass {
|
||||||
mac: return($${suffix}_debug)
|
mac: return($${suffix}_debug)
|
||||||
win32:!gcc: return($${suffix}d)
|
win32: return($${suffix}d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return($$suffix)
|
return($$suffix)
|
||||||
|
@ -1577,6 +1577,12 @@
|
|||||||
\l{CONFIG}{CONFIG += lrelease} will be installed to. Does not have any
|
\l{CONFIG}{CONFIG += lrelease} will be installed to. Does not have any
|
||||||
effect if \l{CONFIG}{CONFIG += embed_translations} is set.
|
effect if \l{CONFIG}{CONFIG += embed_translations} is set.
|
||||||
|
|
||||||
|
\target QML_IMPORT_PATH
|
||||||
|
\section1 QML_IMPORT_PATH
|
||||||
|
|
||||||
|
This variable is only used by \l{Qt Creator Manual}{Qt Creator}.
|
||||||
|
See \l{Qt Creator: Using QML Modules with Plugins} for details.
|
||||||
|
|
||||||
\target QMAKE_systemvariable
|
\target QMAKE_systemvariable
|
||||||
\section1 QMAKE
|
\section1 QMAKE
|
||||||
|
|
||||||
|
@ -1512,7 +1512,7 @@ QDebug operator<<(QDebug debug, const QEasingCurve &item)
|
|||||||
{
|
{
|
||||||
QDebugStateSaver saver(debug);
|
QDebugStateSaver saver(debug);
|
||||||
debug << "type:" << item.d_ptr->type
|
debug << "type:" << item.d_ptr->type
|
||||||
<< "func:" << item.d_ptr->func;
|
<< "func:" << reinterpret_cast<const void *>(item.d_ptr->func);
|
||||||
if (item.d_ptr->config) {
|
if (item.d_ptr->config) {
|
||||||
debug << QString::fromLatin1("period:%1").arg(item.d_ptr->config->_p, 0, 'f', 20)
|
debug << QString::fromLatin1("period:%1").arg(item.d_ptr->config->_p, 0, 'f', 20)
|
||||||
<< QString::fromLatin1("amp:%1").arg(item.d_ptr->config->_a, 0, 'f', 20)
|
<< QString::fromLatin1("amp:%1").arg(item.d_ptr->config->_a, 0, 'f', 20)
|
||||||
|
@ -2301,10 +2301,8 @@ static QStringList resolvedFontFamilies(const QTextCharFormat &format)
|
|||||||
{
|
{
|
||||||
QStringList fontFamilies = format.fontFamilies().toStringList();
|
QStringList fontFamilies = format.fontFamilies().toStringList();
|
||||||
const QString mainFontFamily = format.fontFamily();
|
const QString mainFontFamily = format.fontFamily();
|
||||||
if (!mainFontFamily.isEmpty() && !fontFamilies.startsWith(mainFontFamily)) {
|
if (!mainFontFamily.isEmpty() && !fontFamilies.contains(mainFontFamily))
|
||||||
fontFamilies.removeAll(mainFontFamily);
|
fontFamilies.append(mainFontFamily);
|
||||||
fontFamilies.prepend(mainFontFamily);
|
|
||||||
}
|
|
||||||
return fontFamilies;
|
return fontFamilies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1252,14 +1252,16 @@ void QXcbConnection::xi2ReportTabletEvent(const void *event, TabletData *tabletD
|
|||||||
if (Q_LIKELY(useValuators)) {
|
if (Q_LIKELY(useValuators)) {
|
||||||
const qreal value = scaleOneValuator(normalizedValue, physicalScreenArea.x(), physicalScreenArea.width());
|
const qreal value = scaleOneValuator(normalizedValue, physicalScreenArea.x(), physicalScreenArea.width());
|
||||||
global.setX(value);
|
global.setX(value);
|
||||||
local.setX(value - window->handle()->geometry().x());
|
// mapFromGlobal is ok for nested/embedded windows, but works only with whole-number QPoint;
|
||||||
|
// so map it first, then add back the sub-pixel position
|
||||||
|
local.setX(window->mapFromGlobal(QPoint(int(value), 0)).x() + (value - int(value)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case QXcbAtom::AbsY:
|
case QXcbAtom::AbsY:
|
||||||
if (Q_LIKELY(useValuators)) {
|
if (Q_LIKELY(useValuators)) {
|
||||||
qreal value = scaleOneValuator(normalizedValue, physicalScreenArea.y(), physicalScreenArea.height());
|
qreal value = scaleOneValuator(normalizedValue, physicalScreenArea.y(), physicalScreenArea.height());
|
||||||
global.setY(value);
|
global.setY(value);
|
||||||
local.setY(value - window->handle()->geometry().y());
|
local.setY(window->mapFromGlobal(QPoint(0, int(value))).y() + (value - int(value)));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case QXcbAtom::AbsPressure:
|
case QXcbAtom::AbsPressure:
|
||||||
|
@ -88,6 +88,10 @@ class QMainWindowLayoutSeparatorHelper
|
|||||||
QWidget *window() { return layout()->parentWidget(); }
|
QWidget *window() { return layout()->parentWidget(); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Q_DISABLE_COPY_MOVE(QMainWindowLayoutSeparatorHelper)
|
||||||
|
|
||||||
|
QMainWindowLayoutSeparatorHelper() = default;
|
||||||
|
|
||||||
QList<int> hoverSeparator;
|
QList<int> hoverSeparator;
|
||||||
QPoint hoverPos;
|
QPoint hoverPos;
|
||||||
|
|
||||||
|
@ -3603,7 +3603,18 @@ void tst_QTextDocument::mergeFontFamilies()
|
|||||||
cursor.setPosition(QByteArray("Hello World").length(), QTextCursor::KeepAnchor);
|
cursor.setPosition(QByteArray("Hello World").length(), QTextCursor::KeepAnchor);
|
||||||
cursor.mergeCharFormat(newFormat);
|
cursor.mergeCharFormat(newFormat);
|
||||||
|
|
||||||
QVERIFY(td.toHtml().contains(QLatin1String("font-family:'Jokerman','MS Shell Dlg 2';")));
|
QVERIFY(td.toHtml().contains(QLatin1String("font-family:'MS Shell Dlg 2','Jokerman';")));
|
||||||
|
|
||||||
|
QTextCharFormat newFormatFamilies;
|
||||||
|
newFormatFamilies.setFontFamilies({ QLatin1String("Arial"), QLatin1String("Helvetica") });
|
||||||
|
cursor.mergeCharFormat(newFormatFamilies);
|
||||||
|
|
||||||
|
QVERIFY(td.toHtml().contains(QLatin1String("font-family:'Arial','Helvetica','Jokerman'")));
|
||||||
|
|
||||||
|
newFormatFamilies.setFontFamilies({ QLatin1String("Arial"), QLatin1String("Jokerman"), QLatin1String("Helvetica") });
|
||||||
|
cursor.mergeCharFormat(newFormatFamilies);
|
||||||
|
|
||||||
|
QVERIFY(td.toHtml().contains(QLatin1String("font-family:'Arial','Jokerman','Helvetica'")));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QTextDocument::clearUndoRedoStacks()
|
void tst_QTextDocument::clearUndoRedoStacks()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user