diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:09:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:19:19 +0200 |
commit | b008aefee41a21b24f1d2f1f23cd6c78b888ede5 (patch) | |
tree | fb1d42dbd30c937d956811796856453f29507382 /pose-widget | |
parent | 47dec53450dec0264489cddb0005e13593f43399 (diff) |
many modules: trivial cleanups only
- Remove "this->" where it's not needed. Possibly rename shadowed vars.
- Don't reload the options bundle manually since `options::opts' exists
for that very reason.
- Remove '^ \+$' whitespace
- :retab
Diffstat (limited to 'pose-widget')
-rw-r--r-- | pose-widget/glwidget.cpp | 4 | ||||
-rw-r--r-- | pose-widget/glwidget.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp index a6425fde..b2ec68a7 100644 --- a/pose-widget/glwidget.cpp +++ b/pose-widget/glwidget.cpp @@ -28,7 +28,7 @@ GLWidget::~GLWidget() void GLWidget::paintEvent ( QPaintEvent * event ) { QPainter p(this); project_quad_texture(); - p.drawImage(event->rect(), texture); + p.drawImage(event->rect(), image); } void GLWidget::rotateBy(float xAngle, float yAngle, float zAngle, float x, float y, float z) @@ -231,7 +231,7 @@ void GLWidget::project_quad_texture() { } } } - this->texture = texture; + image = texture; } GLWidget::vec2 GLWidget::project(const vec3 &point) diff --git a/pose-widget/glwidget.h b/pose-widget/glwidget.h index 8896a3cf..25823985 100644 --- a/pose-widget/glwidget.h +++ b/pose-widget/glwidget.h @@ -41,5 +41,5 @@ private: vec3 translation; QImage front; QImage back; - QImage texture; + QImage image; }; |