Fix; change; remove; refactor

* Fix enum_cast template function
* Remove old function declarations from BeQtCodeEditor classes
* Change BAbstractCodeEditorDocument preprocessing user data from QVariantMap to QVariant
* Use Qt coding style, sort includes, class members, etc. in BeQtCodeEditor