MCPcopy Create free account
hub / github.com/KDE/labplot / setHost

Method setHost

src/backend/datasources/LiveDataSource.cpp:369–375  ·  view source on GitHub ↗

! * \brief Sets the network socket's host * \param host */

Source from the content-addressed store, hash-verified

367 * \param host
368 */
369void 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
377QString LiveDataSource::host() const {
378 return m_host;

Callers 3

saveSettingsMethod · 0.80

Calls

no outgoing calls

Tested by 2