From a65ca7af57feaf7a4ea73f7e071a72eb9b3a1e24 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 7 Nov 2015 10:39:46 +0100 Subject: Refactored Painter. --- plugingui/lineedit.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugingui/lineedit.cc') diff --git a/plugingui/lineedit.cc b/plugingui/lineedit.cc index 12969ba..ff936f4 100644 --- a/plugingui/lineedit.cc +++ b/plugingui/lineedit.cc @@ -213,7 +213,7 @@ void LineEdit::keyEvent(KeyEvent *keyEvent) void LineEdit::repaintEvent(RepaintEvent *repaintEvent) { - Painter p(this); + Painter p(*this); p.clear(); @@ -224,7 +224,7 @@ void LineEdit::repaintEvent(RepaintEvent *repaintEvent) return; } - p.drawBox(0, 0, &box, w, h); + p.drawBox(0, 0, box, w, h); p.setColour(Colour(183.0/255.0, 219.0/255.0 , 255.0/255.0, 1)); -- cgit v1.2.3