QScintilla refactoring