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

Method showSparklines

src/frontend/spreadsheet/SpreadsheetView.cpp:1170–1178  ·  view source on GitHub ↗

Shows (\c on=true) or hides (\c on=false) the column sparkline in the horizontal header

Source from the content-addressed store, hash-verified

1168
1169//! Shows (\c on=true) or hides (\c on=false) the column sparkline in the horizontal header
1170void SpreadsheetView::showSparklines(bool on) {
1171 m_horizontalHeader->showSparklines(on);
1172 if (action_toggle_sparklines) {
1173 if (on)
1174 action_toggle_sparklines->setText(i18n("Hide Sparklines"));
1175 else
1176 action_toggle_sparklines->setText(i18n("Show Sparklines"));
1177 }
1178}
1179
1180void SpreadsheetView::handleHeaderDataChanged(Qt::Orientation orientation, int first, int last) {
1181 if (orientation != Qt::Horizontal)

Callers 6

loadMethod · 0.45
loadConfigMethod · 0.45
initMethod · 0.45
toggleSparklinesMethod · 0.45
checkSpreadsheetMenuMethod · 0.45

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected