MCPcopy Create free account
hub / github.com/TeXworks/texworks / setUnit

Method setUnit

modules/QtPDF/src/PDFRuler.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void 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
61void PDFRuler::contextMenuEvent(QContextMenuEvent * event)
62{

Callers 2

mouseDoubleClickEventMethod · 0.45

Calls

no outgoing calls

Tested by 1