| 47 | } |
| 48 | |
| 49 | void PDFRuler::setUnit(const Physical::Length::Unit & newUnit) |
| 50 | { |
| 51 | if (m_Unit == newUnit) |
| 52 | return; |
| 53 | m_Unit = newUnit; |
| 54 | Q_FOREACH(QAction * const a, m_unitActions) { |
| 55 | Physical::Length::Unit u = a->data().value<Physical::Length::Unit>(); |
| 56 | a->setChecked(u == newUnit); |
| 57 | } |
| 58 | update(); |
| 59 | } |
| 60 | |
| 61 | void PDFRuler::contextMenuEvent(QContextMenuEvent * event) |
| 62 | { |
no outgoing calls