MCPcopy Create free account
hub / github.com/cxasm/notepad-- / setLeftScrollXValue

Method setLeftScrollXValue

src/MediatorDisplay.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92void MediatorDisplay::setLeftScrollXValue(int value)
93{
94 if (m_leftScrollXValue != value)
95 {
96 m_leftScrollXValue = value;
97 }
98
99
100 //如果左右不相等,则推动对方去同步
101 if (m_leftScrollXValue != m_rightScrollXValue)
102 {
103 emit syncCurScrollXValue(0);
104 }
105
106}
107
108void MediatorDisplay::setRightScrollXValue(int value)
109{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected