! Returns whether spark lines are shown currently or not. */
| 190 | Returns whether spark lines are shown currently or not. |
| 191 | */ |
| 192 | void SpreadsheetHeaderView::showSparklines(bool on) { |
| 193 | m_showSparklines = on; |
| 194 | if (on) { |
| 195 | m_sparklineSlave->getModel()->spreadsheetModel()->spreadsheet()->setShowSparklines(true); |
| 196 | if (!m_sparklineCalled) { |
| 197 | Q_EMIT sparklineToggled(); |
| 198 | m_sparklineCalled = true; |
| 199 | } |
| 200 | } |
| 201 | refresh(); |
| 202 | } |
| 203 | |
| 204 | void SpreadsheetHeaderView::refresh() { |
| 205 | int width = sectionSize(count() - 1); |
nothing calls this directly
no test coverage detected