Corel Painter has a very useful option for rotating brush tip textures which I think nowadays is a must have in all modern painting apps.
These modifications use QPainter, QBrush & QTransform to achieve this effect. This is very basic and needs improvement as the quality of the rotated pattern is less than ideal. There's also other limitations that we should consider. I don't think it's a very good idea to be able to rotate patterns which are too large. For the time being I've limited the rotation code to patterns less than or equal to 512x512px, but the rotation slider (controller) doesn't reflect this, ie. it doesn't become inactive if the pattern is larger than 512x512px.
With your help I hope to address these limitations in some manageable way.
{F3808378}
As this is my first patch to Krita I didn't know how to use the available classes already present in the code, hence the use of QPainter + QBrush.
One other thing to note, since I used QPainter + QBrush for this, I had to convert the pattern to regular QImage so the multiply/subtract operations might not be entirely the same as the ones in the no rotation mode (when rotation angle = 0).