summaryrefslogtreecommitdiff
path: root/plugingui/label.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-09-28 15:30:02 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-09-28 15:30:02 +0200
commit1c9341fbe0b27fd7457aecedf4d98fb6d02c236a (patch)
tree6adc93a550497dcaefd66a6910b786b5ebce7b89 /plugingui/label.cc
parent9f01114c286cc2a19683ff69efc0381fc9b4be90 (diff)
Use new style guide on already refactored files.
Diffstat (limited to 'plugingui/label.cc')
-rw-r--r--plugingui/label.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugingui/label.cc b/plugingui/label.cc
index be37d82..1b2ec14 100644
--- a/plugingui/label.cc
+++ b/plugingui/label.cc
@@ -32,26 +32,26 @@
namespace GUI {
Label::Label(GUI::Widget *parent)
- : Widget(parent)
+ : Widget(parent)
{
}
void Label::setText(std::string text)
{
- _text = text;
- repaintEvent(NULL);
+ _text = text;
+ repaintEvent(nullptr);
}
void Label::repaintEvent(GUI::RepaintEvent *e)
{
- Painter p(this);
+ Painter p(this);
- p.clear();
+ p.clear();
- p.setColour(Colour(1));
+ p.setColour(Colour(1));
- Font font(":fontemboss.png");
- p.drawText(10, (height() + font.textHeight()) / 2, font, _text, true);
+ Font font(":fontemboss.png");
+ p.drawText(10, (height() + font.textHeight()) / 2, font, _text, true);
}
} // GUI::