Skip to content

sentences_page.cpp

file src/app/dialogs/sentences_page.cpp ยท Applications

Implementation of SentencesPage, the Sentences tab of the settings dialog.

Source src/app/dialogs/sentences_page.cpp

Builds the registry and custom sentence tables and moves values between them and the sentences fields of an io::Profile.

Namespaces

Namespace Description
nmeasim::app The Qt Widgets desktop application: the main window, its dock panels, the map, the instruments and the settings dialog, built on nmeasim::io.

Summary

File-local functions

Name Description
from_view() Converts registry text to a QString.

File-local functions

from_view()

QString from_view(std::string_view text)

Converts registry text to a QString.

The registry holds its ids, descriptions, group names and talkers as std::string_view values, which need not be null-terminated, so the length is passed explicitly.

Parameters

Name Type Description
text std::string_view UTF-8 text; only read during the call.

Returns QString: A copy of text.

Declared in src/app/dialogs/sentences_page.cpp:36