summaryrefslogtreecommitdiffhomepage
path: root/pose-widget/pose-widget.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-22 12:54:47 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:01:53 +0200
commitf50ac3549d6a7f1199fa012e4b03f581bc8d305b (patch)
tree50ff044f1c618119c88544709808f533ed02225e /pose-widget/pose-widget.cpp
parentd61eb905ae3fa161d50821d01ee47915713e89c2 (diff)
core, modules: modernize syntax only
Use more C++17 features where this helps any.
Diffstat (limited to 'pose-widget/pose-widget.cpp')
-rw-r--r--pose-widget/pose-widget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp
index 60d41aa5..16788b4b 100644
--- a/pose-widget/pose-widget.cpp
+++ b/pose-widget/pose-widget.cpp
@@ -15,7 +15,7 @@
#include <algorithm>
#include <QPainter>
-#include <QPaintEvent>
+#include <QtEvents>
#include <QDebug>
@@ -130,12 +130,12 @@ void pose_widget::rotate_sync(double xAngle, double yAngle, double zAngle, doubl
void pose_transform::rotate_async(double xAngle, double yAngle, double zAngle, double x, double y, double z)
{
- with_rotate([this]() {}, xAngle, yAngle, zAngle, x, y, z);
+ with_rotate([] {}, xAngle, yAngle, zAngle, x, y, z);
}
void pose_transform::rotate_sync(double xAngle, double yAngle, double zAngle, double x, double y, double z)
{
- with_rotate([this]() {
+ with_rotate([this] {
rotation = rotation_;
translation = translation_;
project_quad_texture();