Merge integration refs/builds/qtci/dev/1618306545

This commit is contained in:
Qt CI Bot 2021-04-13 11:46:39 +00:00
commit 2c5a35f6ed
8 changed files with 31 additions and 28 deletions

View File

@ -184,14 +184,13 @@ void QLockFile::setStaleLockTime(int staleLockTime)
\overload \overload
\since 6.2 \since 6.2
Sets \a staleLockTime to be an interval after which a lock file is considered Sets the interval after which a lock file is considered stale to \a value.
stale.
The default value is 30 seconds. The default value is 30 seconds.
If your application typically keeps the file locked for more than 30 seconds If your application typically keeps the file locked for more than 30 seconds
(for instance while saving megabytes of data for 2 minutes), you should set (for instance while saving megabytes of data for 2 minutes), you should set
a bigger value using setStaleLockTime(). a bigger value using setStaleLockTime().
The value of \a staleLockTime is used by lock() and tryLock() in order The value of staleLockTime() is used by lock() and tryLock() in order
to determine when an existing lock file is considered stale, i.e. left over to determine when an existing lock file is considered stale, i.e. left over
by a crashed process. This is useful for the case where the PID got reused by a crashed process. This is useful for the case where the PID got reused
meanwhile, so one way to detect a stale lock file is by the fact that meanwhile, so one way to detect a stale lock file is by the fact that
@ -212,7 +211,7 @@ int QLockFile::staleLockTime() const
return d->staleLockTime; return d->staleLockTime;
} }
/*! \fn std::chrono::milliseconds staleLockTimeAsDuration() const /*! \fn std::chrono::milliseconds QLockFile::staleLockTimeAsDuration() const
\overload \overload
\since 6.2 \since 6.2

View File

@ -307,6 +307,8 @@ void QWindowsPipeReader::startAsyncReadLocked()
} }
/*! /*!
\internal
Thread pool callback procedure. Thread pool callback procedure.
*/ */
void QWindowsPipeReader::waitCallback(PTP_CALLBACK_INSTANCE instance, PVOID context, void QWindowsPipeReader::waitCallback(PTP_CALLBACK_INSTANCE instance, PVOID context,

View File

@ -183,6 +183,7 @@ void QWindowsPipeWriter::startAsyncWriteLocked()
} }
/*! /*!
\internal
Thread pool callback procedure. Thread pool callback procedure.
*/ */
void QWindowsPipeWriter::waitCallback(PTP_CALLBACK_INSTANCE instance, PVOID context, void QWindowsPipeWriter::waitCallback(PTP_CALLBACK_INSTANCE instance, PVOID context,

View File

@ -4767,17 +4767,19 @@ QByteArray QByteArray::toPercentEncoding(const QByteArray &exclude, const QByteA
*/ */
/*! /*!
\function QtLiterals::operator""_qba(const char *str, size_t size) \fn QtLiterals::operator""_qba(const char *str, size_t size)
\relates QByteArray \relates QByteArray
\since 6.2 \since 6.2
Literal operator that creates a QByteArray out of a char string literal \a Literal operator that creates a QByteArray out of the first \a size characters
str. Creating a QByteArray from it is free in this case, and the generated in the char string literal \a str.
string data is stored in the read-only segment of the compiled object file.
Duplicate literals may share the same read-only memory. This functionality is The QByteArray is created at compile time, and the generated string data is stored
interchangeable with QByteArrayLiteral, but saves typing when many string in the read-only segment of the compiled object file. Duplicate literals may share
literals are present in the code. the same read-only memory. This functionality is interchangeable with
QByteArrayLiteral, but saves typing when many string literals are present in the
code.
The following code creates a QByteArray: The following code creates a QByteArray:
\code \code

View File

@ -10506,17 +10506,19 @@ QString QString::toHtmlEscaped() const
*/ */
/*! /*!
\function QtLiterals::operator""_qs(const char16_t *str, size_t size) \fn QtLiterals::operator""_qs(const char16_t *str, size_t size)
\relates QString \relates QString
\since 6.2 \since 6.2
Literal operator that creates a QString out of a char16_t string literal \a Literal operator that creates a QString out of the first \a size characters in
str. Creating a QString from it is free in this case, and the generated string the char16_t string literal \a str.
data is stored in the read-only segment of the compiled object file. Duplicate
literals may share the same read-only memory. This functionality is The QString is created at compile time, and the generated string data is stored
interchangeable with QStringLiteral, but saves typing when many string in the read-only segment of the compiled object file. Duplicate literals may
literals are present in the code. share the same read-only memory. This functionality is interchangeable with
QStringLiteral, but saves typing when many string literals are present in the
code.
The following code creates a QString: The following code creates a QString:
\code \code

View File

@ -633,7 +633,7 @@ qreal QPixmap::devicePixelRatio() const
high-DPI pixmap rather than a large pixmap high-DPI pixmap rather than a large pixmap
(see \l{Drawing High Resolution Versions of Pixmaps and Images}). (see \l{Drawing High Resolution Versions of Pixmaps and Images}).
\sa devicePixelRatio(), devicePixelSize() \sa devicePixelRatio(), deviceIndependentSize()
*/ */
void QPixmap::setDevicePixelRatio(qreal scaleFactor) void QPixmap::setDevicePixelRatio(qreal scaleFactor)
{ {

View File

@ -454,10 +454,13 @@ QString QLocalSocket::serverName() const
} }
/*! /*!
Returns the socket options as specified by setSocketOptions(), \property QLocalSocket::socketOptions
\since 6.2
\brief the socket options.
Options must be set while the socket is in \l{UnconnectedState} state.
\sa connectToServer() \sa connectToServer()
*/ */
QLocalSocket::SocketOptions QLocalSocket::socketOptions() const QLocalSocket::SocketOptions QLocalSocket::socketOptions() const
{ {
@ -465,12 +468,6 @@ QLocalSocket::SocketOptions QLocalSocket::socketOptions() const
return d->socketOptions; return d->socketOptions;
} }
/*!
\since 6.2
Set the socket \a options of the connection.
*/
void QLocalSocket::setSocketOptions(QLocalSocket::SocketOptions option) void QLocalSocket::setSocketOptions(QLocalSocket::SocketOptions option)
{ {
Q_D(QLocalSocket); Q_D(QLocalSocket);

View File

@ -2844,7 +2844,7 @@ QRect QTableView::visualRect(const QModelIndex &index) const
/*! /*!
\reimp \reimp
Makes sure that the given \a item is visible in the table view, Makes sure that the given \a index is visible in the table view,
scrolling if necessary. scrolling if necessary.
*/ */
void QTableView::scrollTo(const QModelIndex &index, ScrollHint hint) void QTableView::scrollTo(const QModelIndex &index, ScrollHint hint)