Merge remote-tracking branch 'origin/5.13' into dev

Change-Id: I85074c2cee36f43ffc322733c60cdfd8b25e2674
This commit is contained in:
Qt Forward Merge Bot 2019-05-04 03:03:07 +02:00
commit 9debad60b8
11 changed files with 32 additions and 16 deletions

View File

@ -29,7 +29,8 @@
/*! /*!
\page cmake-manual.html \page cmake-manual.html
\title CMake Manual \target CMake Manual
\title Building with CMake
\c {CMake} is a tool that helps simplify the build process for \c {CMake} is a tool that helps simplify the build process for
development projects across different platforms. \c{CMake} development projects across different platforms. \c{CMake}
@ -37,7 +38,7 @@
files. files.
\c{CMake} is a 3rd party tool with its own \l{CMake Documentation}{documentation}. \c{CMake} is a 3rd party tool with its own \l{CMake Documentation}{documentation}.
The rest of this manual details the specifics of how to use Qt 5 with \c{CMake}. The rest of this topic details the specifics of how to use Qt 5 with \c{CMake}.
The minimum version required to use Qt5 is \c{CMake} 3.1.0. The minimum version required to use Qt5 is \c{CMake} 3.1.0.
\section1 Getting Started \section1 Getting Started
@ -56,8 +57,8 @@
\snippet snippets/cmake/CMakeLists.pro 0 \snippet snippets/cmake/CMakeLists.pro 0
In order for \c{find_package} to be successful, Qt 5 must be found below the CMAKE_PREFIX_PATH, In order for \c{find_package} to be successful, Qt 5 must be found below the CMAKE_PREFIX_PATH,
or the Qt5<Module>_DIR must be set in the \c{CMake} cache to the location of the or the \c{Qt5_DIR} must be set in the \c{CMake} cache to the location of the
Qt5WidgetsConfig.cmake file. The easiest way to use \c{CMake} is to set the CMAKE_PREFIX_PATH \c{Qt5Config.cmake} file. The easiest way to use \c{CMake} is to set the CMAKE_PREFIX_PATH
environment variable to the install prefix of Qt 5. environment variable to the install prefix of Qt 5.
The CMAKE_AUTOMOC setting runs moc automatically when required. For more on this feature see The CMAKE_AUTOMOC setting runs moc automatically when required. For more on this feature see
@ -105,7 +106,8 @@
for use. The name of the imported target for each module matches the name of the module with a for use. The name of the imported target for each module matches the name of the module with a
prefix of 'Qt5::', for example Qt5::Widgets. All of the package-specific variables have a prefix of 'Qt5::', for example Qt5::Widgets. All of the package-specific variables have a
consistent name with a prefix of the name of the package. For example, consistent name with a prefix of the name of the package. For example,
\c{find_package}(Qt5Widgets) will make the following variables available if successfully found: \c{find_package(Qt5 COMPONENTS Widgets)} will make the following variables available
if successfully found:
\list \list
\li Qt5Widgets_VERSION String describing the version of the module. \li Qt5Widgets_VERSION String describing the version of the module.

View File

@ -61,7 +61,7 @@
Qt Designer from Qt Creator in the Design mode (1). Qt Designer from Qt Creator in the Design mode (1).
\li \l{qmake Manual}{qmake} for building applications for different \li \l{qmake Manual}{qmake} for building applications for different
target platforms. You can also use other build automation tools, target platforms. You can also use other build automation tools,
such as \l{CMake Manual}{CMake}, \l{Qbs Manual}{Qbs}, or Autotools. such as \l{CMake Documentation}{CMake}, \l{Qbs Manual}{Qbs}, or Autotools.
When using qmake or CMake, you specify the build system in the When using qmake or CMake, you specify the build system in the
Projects mode (2). When using Qbs or Autotools, you open a .qbs or Projects mode (2). When using Qbs or Autotools, you open a .qbs or
.am file in Qt Creator. .am file in Qt Creator.

View File

@ -45,6 +45,19 @@
The \l{libdus-1 headers} got updated to upstream version 1.12.12. The \l{libdus-1 headers} got updated to upstream version 1.12.12.
\section2 Qt Wayland
\list
\li The fullscreen-shell-unstable-v1 version 1 was added under the MIT
License.
\li The linux-dmabuf-unstable-v1 protocol version 3 was added under the
MIT License.
\li The wayland protocol got updated to version 1.16.0.
\li The wl-scaler protocol version 2 was added under the MIT License.
\li The wp-viewporter protocol version 1 was added under the MIT
License.
\endlist
\section1 Qt 5.12.3 \section1 Qt 5.12.3
\section2 Qt GUI Module \section2 Qt GUI Module

View File

@ -43,7 +43,7 @@
qtmain is a helper library that enables the developer to write a qtmain is a helper library that enables the developer to write a
cross-platform main() function on Windows. cross-platform main() function on Windows.
If you do not use \l qmake, \l {Qbs Manual}{qbs}, or other build tools such as If you do not use \l qmake, \l {Qbs Manual}{qbs}, or other build tools such as
\l{CMake Manual}{CMake}, then you need to link against the \l{CMake Documentation}{CMake}, then you need to link against the
\c qtmain library. \c qtmain library.
The qtmain library is statically linked with the application. The qtmain library is statically linked with the application.

View File

@ -175,7 +175,7 @@ by installing the latest \c build-tools, \c platform-tools, \c emulator, and \c
packages: packages:
\badcode \badcode
./android update sdk ./bin/sdkmanager --update
\endcode \endcode
To install a specific package, use \c sdkmanager from To install a specific package, use \c sdkmanager from

View File

@ -107,6 +107,7 @@
\section1 Platform Plugins for Embedded Linux Devices \section1 Platform Plugins for Embedded Linux Devices
\target embedded eglfs
\section2 EGLFS \section2 EGLFS
\l {http://www.khronos.org/egl}{EGL} is an interface between OpenGL and the \l {http://www.khronos.org/egl}{EGL} is an interface between OpenGL and the

View File

@ -132,7 +132,7 @@ The following table summarizes the platform plugins available for QPA:
\row \row
\li \c qeglfs \li \c qeglfs
\li QEglFSIntegrationPlugin \li QEglFSIntegrationPlugin
\li \l EGLFS support for embedded Linux devices. \li \l{embedded eglfs}{EGLFS} support for embedded Linux devices.
\row \row
\li \c qhaiku \li \c qhaiku
\li QHaikuIntegration \li QHaikuIntegration

View File

@ -114,7 +114,7 @@
\endcode \endcode
On Windows, if you do not use \l qmake On Windows, if you do not use \l qmake
or other build tools such as \l{CMake Manual}{CMake}, you also need to link against or other build tools such as \l{CMake Documentation}{CMake}, you also need to link against
the \c qtmain library. the \c qtmain library.
\section1 Qt Add-Ons \section1 Qt Add-Ons

View File

@ -50,7 +50,6 @@
\li \l{Qt Assistant Manual}{Qt Assistant} \li \l{Qt Assistant Manual}{Qt Assistant}
\li \l{Qt Designer Manual}{Qt Designer} \li \l{Qt Designer Manual}{Qt Designer}
\li \l{qmake Manual}{qmake} \li \l{qmake Manual}{qmake}
\li \l{CMake Manual}{Using Qt with CMake}
\li \l{QDoc Manual}{qdoc} \li \l{QDoc Manual}{qdoc}
\endlist \endlist

View File

@ -11,7 +11,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOUIC ON)
# Find the QtWidgets library # Find the QtWidgets library
find_package(Qt5Widgets CONFIG REQUIRED) find_package(Qt5 COMPONENTS Widgets REQUIRED)
# Populate a CMake variable with the sources # Populate a CMake variable with the sources
set(helloworld_SRCS set(helloworld_SRCS
@ -26,13 +26,13 @@ target_link_libraries(helloworld Qt5::Widgets)
#! [0] #! [0]
#! [1] #! [1]
find_package(Qt5Core) find_package(Qt5 COMPONENTS Core REQUIRED)
get_target_property(QtCore_location Qt5::Core LOCATION) get_target_property(QtCore_location Qt5::Core LOCATION)
#! [1] #! [1]
#! [2] #! [2]
find_package(Qt5Core) find_package(Qt5 COMPONENTS Core REQUIRED)
set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_RELEASE} -fprofile-arcs -ftest-coverage") set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_RELEASE} -fprofile-arcs -ftest-coverage")

View File

@ -57,8 +57,9 @@ export function getHeight(string) {
} }
export function getImagePath(string) { export function getImagePath(string) {
var pattern = /src=\"http:\/\/(\S+)\"/ var pattern = /src=\"https?:\/\/(\S+)\"/
return (string.match(pattern))[1] var match = string.match(pattern)
return match ? match[1] : ""
} }
export function calculateScale(width, height, cellSize) { export function calculateScale(width, height, cellSize) {