From 7a5ede33b58b8935ce33c5363f7d500ba8663c63 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 7 Jun 2016 21:32:41 +0200 Subject: Update all use of widget_*.png to new TexturedBox. --- plugingui/textedit.cc | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'plugingui/textedit.cc') diff --git a/plugingui/textedit.cc b/plugingui/textedit.cc index 01895a8..05aa251 100644 --- a/plugingui/textedit.cc +++ b/plugingui/textedit.cc @@ -46,29 +46,10 @@ TextEdit::TextEdit(Widget *parent) scroll.move(width() - 5, 1); scroll.resize(20, 100); CONNECT(&scroll, valueChangeNotifier, this, &TextEdit::scrolled); - - box.topLeft = new Image(":widget_tl.png"); - box.top = new Image(":widget_t.png"); - box.topRight = new Image(":widget_tr.png"); - box.left = new Image(":widget_l.png"); - box.right = new Image(":widget_r.png"); - box.bottomLeft = new Image(":widget_bl.png"); - box.bottom = new Image(":widget_b.png"); - box.bottomRight = new Image(":widget_br.png"); - box.center = new Image(":widget_c.png"); } TextEdit::~TextEdit() { - delete box.topLeft; - delete box.top; - delete box.topRight; - delete box.left; - delete box.right; - delete box.bottomLeft; - delete box.bottom; - delete box.bottomRight; - delete box.center; } void TextEdit::resize(int height, int width) @@ -174,7 +155,8 @@ void TextEdit::repaintEvent(RepaintEvent* repaintEvent) return; } - p.drawBox(0, 0, box, w, h); + box.setSize(w, h); + p.drawImage(0,0, box); p.setColour(Colour(183.0 / 255.0, 219.0 / 255.0 , 255.0 / 255.0, 1)); -- cgit v1.2.3