Skip to content

instrument_tile.cpp

file src/app/widgets/instrument_tile.cpp ยท Applications

Layout, fonts and override control of the dashboard's instrument tiles.

Source src/app/widgets/instrument_tile.cpp

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
caption_font() Returns the caption font of a tile: bold, slightly smaller, spaced-out capitals.

File-local variables

Name Description
kNumberScale Point size of numeric readouts relative to the default label font.
kTextScale Point size of text readouts (positions, times) relative to the default label font; smaller than kNumberScale because they run to several lines.

File-local functions

caption_font()

QFont caption_font(const QFont& base)

Returns the caption font of a tile: bold, slightly smaller, spaced-out capitals.

Parameters

Name Type Description
base const QFont& Font of the caption label.

Returns QFont: A copy of base at 0.82 times its point size, bold, all upper case and with a letter spacing of 110 percent.

Declared in src/app/widgets/instrument_tile.cpp:29

File-local variables

kNumberScale

double kNumberScale{2.1}

Point size of numeric readouts relative to the default label font.

Declared in src/app/widgets/instrument_tile.cpp:19

kTextScale

double kTextScale{1.4}

Point size of text readouts (positions, times) relative to the default label font; smaller than kNumberScale because they run to several lines.

Declared in src/app/widgets/instrument_tile.cpp:22