Abdelrazak Younes wrote:
Edwin Leuven wrote:
Abdelrazak Younes wrote:
Edwin Leuven wrote:
Abdelrazak Younes wrote:
Yes, rather than fixing the symptom we should fix the origin of
the problem.
afaics, every time we contruct a painter:
QPainter qp(qwa_->paintDevice());
Wait, there is something fishy here. My original patched used to
cache also the current QPainter in qp_ and I see that it is not
there.
it's in the header, but not used
The proper fix would be to use that and to transform
setPainterPen(...) into a QPainter * getPainter(...) that will reset
the QPainter if needed.
shall i in the meantime commit the fix to setPainterPen ?
No, please try this patch instead. If it works for you I'll check it in.
I've tested it and it works fine so I've committed it.
Abdel.
LOG:
* qp_ member is now used for painting
* QLPainter::start() now re-initialize qp_
* QLPainter::end() now end qp_