Fixed resize helper rendering with Qt 5

Due to the use of scaling it is necessary to make sure the pen is
cosmetic. In Qt 4 the pen used to be cosmetic by default.