SqlTextEdit: Show line numbers

Show line numbers in the SqlTextEdit widget. This code is based on the
CodeEditor example from the Qt documentation.