diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2018-04-30 16:24:45 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2018-05-02 08:28:46 +0000 |
commit | e2eac34b3d6cac1413492b5a0ca56b39c7531442 (patch) | |
tree | dd4b50f30dbaa70194c6f16c0e8e5a1b22798597 /examples/scxml/ftpclient/ftpcontrolchannel.cpp | |
parent | ca2ad9a474bb3df56ba65447d74b73cf8f17ae3a (diff) |
Wrap examples' code at 80 column
According to https://wiki.qt.io/Writing_Qt_Examples
Task-number: QTBUG-60649
Change-Id: I17073bb3caf32ccd17d93542876a73ed939f12bd
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'examples/scxml/ftpclient/ftpcontrolchannel.cpp')
-rw-r--r-- | examples/scxml/ftpclient/ftpcontrolchannel.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/scxml/ftpclient/ftpcontrolchannel.cpp b/examples/scxml/ftpclient/ftpcontrolchannel.cpp index c37b6e5..5f58105 100644 --- a/examples/scxml/ftpclient/ftpcontrolchannel.cpp +++ b/examples/scxml/ftpclient/ftpcontrolchannel.cpp @@ -52,8 +52,10 @@ FtpControlChannel::FtpControlChannel(QObject *parent) : QObject(parent) { - connect(&m_socket, &QIODevice::readyRead, this, &FtpControlChannel::onReadyRead); - connect(&m_socket, &QAbstractSocket::disconnected, this, &FtpControlChannel::closed); + connect(&m_socket, &QIODevice::readyRead, + this, &FtpControlChannel::onReadyRead); + connect(&m_socket, &QAbstractSocket::disconnected, + this, &FtpControlChannel::closed); connect(&m_socket, &QAbstractSocket::connected, this, [this]() { emit opened(m_socket.localAddress(), m_socket.localPort()); }); @@ -64,7 +66,8 @@ void FtpControlChannel::connectToServer(const QString &server) m_socket.connectToHost(server, 21); } -void FtpControlChannel::command(const QByteArray &command, const QByteArray ¶ms) +void FtpControlChannel::command(const QByteArray &command, + const QByteArray ¶ms) { QByteArray sendData = command; if (!params.isEmpty()) |