Some minor cleaning up [ci skip].

Replaced calls to qPrintable(QString) with calls to
QString::toStdString().
Some minor cleaning up [ci skip].

Created a function to convert a QString to a const char *, and used it
in our QScintilla support plugin.
Some minor cleaning up [ci skip].