diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-19 12:11:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-08-19 12:11:11 +0200 |
commit | c1d890fcf3056cd0e45a83130055456d492d723a (patch) | |
tree | 24db9e6d42d352f645b4b69c99a48b551cabd3d1 /tracker-pt/ftnoir_tracker_pt.cpp | |
parent | 204354a81b04bd9b4c0aa73ed36d50511acff541 (diff) |
tracker/{pt,aruco}: simplify
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.cpp')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index 83ea094c..66d6f1ec 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -162,11 +162,11 @@ void Tracker_PT::start_tracker(QFrame* video_frame) preview_frame = cv::Mat(video_frame->height(), video_frame->width(), CV_8UC3); preview_frame.setTo(cv::Scalar(0, 0, 0)); - video_widget = qptr<cv_video_widget>(video_frame); - layout = qptr<QHBoxLayout>(video_frame); + video_widget = std::make_unique<cv_video_widget>(video_frame); + layout = std::make_unique<QHBoxLayout>(video_frame); layout->setContentsMargins(0, 0, 0, 0); - layout->addWidget(video_widget.data()); - video_frame->setLayout(layout.data()); + layout->addWidget(video_widget.get()); + video_frame->setLayout(layout.get()); //video_widget->resize(video_frame->width(), video_frame->height()); video_frame->show(); |