修改标记样式的颜色
| 1841 | |
| 1842 | //修改标记样式的颜色 |
| 1843 | void ScintillaEditView::changeStyleColor(int sytleId) |
| 1844 | { |
| 1845 | if (m_styleColorMenu == nullptr) |
| 1846 | { |
| 1847 | initStyleColorMenu(); |
| 1848 | } |
| 1849 | if( sytleId < 5) |
| 1850 | { |
| 1851 | QPixmap colorBar(36, 36); |
| 1852 | colorBar.fill((&StyleSet::s_global_style->mark_style_1)[sytleId].bgColor); |
| 1853 | m_styleMarkActList.at(sytleId)->setIcon(colorBar); |
| 1854 | |
| 1855 | if (m_NoteWin != nullptr) |
| 1856 | { |
| 1857 | m_NoteWin->changeMarkColor(sytleId); |
| 1858 | } |
| 1859 | } |
| 1860 | } |
| 1861 | |
| 1862 | void ScintillaEditView::initStyleColorMenu() |
| 1863 | { |
nothing calls this directly
no test coverage detected