#include <CustomTextEdit.h>
Public Member Functions | |
void | scrollContentsBy (int dx, int dy) |
Override to keep the regular QTextEdit from ruining the background picture. |
void scrollContentsBy | ( | int | dx, | |
int | dy | |||
) | [inline] |
Override to keep the regular QTextEdit from ruining the background picture.
By scrolling by the entire view port and not just the minimum viewport, we tell Qt that it should update the entire viewport and thus updating the background picture.
Otherwise we wind up with "artifacts" on the background picture.
dx | the X to scroll by | |
dy | the Y to scroll by |