Convert source code window to Qt4's QPlainTextEdit.
commit876f596f9e7a139a46e64b0b54929e388ffdecbb
authorJohannes Sixt <j6t@kdbg.org>
Fri, 24 Sep 2010 20:09:31 +0000 (24 22:09 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 26 Sep 2010 17:22:20 +0000 (26 19:22 +0200)
tree5aa8474bd3981ba5643a6f6795a6889250a9a957
parent0ab98fe58db00e68a0101e5fd7fb0e49678749dc
Convert source code window to Qt4's QPlainTextEdit.

Qt4 shows in examples/widgets/codeeditor how line numbers can be displayed
to the left of the source code lines. A simplified version of this is used
here (it does not change width depending on the magnitude of the line
numbers). The basic idea is to make the left margin large and to cover it
with a new widget, in which the extra information is displayed.

Special thanks to Gilles Allard, who provided an initial implementation.
kdbg/sourcewnd.cpp
kdbg/sourcewnd.h