! * \brief Sets the network socket's host * \param host */
| 367 | * \param host |
| 368 | */ |
| 369 | void LiveDataSource::setHost(const QString& host) { |
| 370 | if (host.compare(QStringLiteral("localhost"), Qt::CaseSensitivity::CaseInsensitive) == 0) |
| 371 | m_host = QStringLiteral("127.0.0.1"); |
| 372 | else |
| 373 | m_host = host.simplified(); |
| 374 | initDevice(); |
| 375 | } |
| 376 | |
| 377 | QString LiveDataSource::host() const { |
| 378 | return m_host; |
no outgoing calls