| 151 | } |
| 152 | |
| 153 | void CodeEditor::updateSidebarArea(const QRect &rect, int dy) |
| 154 | { |
| 155 | if (dy) { |
| 156 | m_sideBar->scroll(0, dy); |
| 157 | } else { |
| 158 | m_sideBar->update(0, rect.y(), m_sideBar->width(), rect.height()); |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | void CodeEditor::sidebarPaintEvent(QPaintEvent *event) |
| 163 | { |