Document QLocalSocket::socketOptions as a property

Change-Id: Ifda55ac7afb3fb30d973a01104b012959ae285ab
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Nico Vertriest <nico.vertriest@qt.io>
bb10
Volker Hilsheimer 2021-04-12 13:21:51 +02:00
parent 409443a376
commit 2cc458abfb
1 changed files with 5 additions and 8 deletions

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()
*/
QLocalSocket::SocketOptions QLocalSocket::socketOptions() const
{
@ -465,12 +468,6 @@ QLocalSocket::SocketOptions QLocalSocket::socketOptions() const
return d->socketOptions;
}
/*!
\since 6.2
Set the socket \a options of the connection.
*/
void QLocalSocket::setSocketOptions(QLocalSocket::SocketOptions option)
{
Q_D(QLocalSocket);