summaryrefslogtreecommitdiffhomepage
path: root/cv
diff options
context:
space:
mode:
Diffstat (limited to 'cv')
-rw-r--r--cv/video-property-page.cpp6
-rw-r--r--cv/video-widget.hpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/cv/video-property-page.cpp b/cv/video-property-page.cpp
index 0d2b7458..7d94bbc2 100644
--- a/cv/video-property-page.cpp
+++ b/cv/video-property-page.cpp
@@ -51,7 +51,7 @@ prop_settings_worker::prop_settings_worker(int idx)
int ret = cap.get(cv::CAP_PROP_SETTINGS);
if (ret != 0)
- run_in_thread_async(qApp, []() {
+ run_in_thread_async(qApp, [] {
QMessageBox::warning(nullptr,
"Camera properties",
"Camera dialog already opened",
@@ -98,7 +98,7 @@ ok:
if (!cap.set(cv::CAP_PROP_SETTINGS, 0))
{
- run_in_thread_async(qApp, []() {
+ run_in_thread_async(qApp, [] {
QMessageBox::warning(nullptr,
"Camera properties",
"Can't open camera dialog",
@@ -137,7 +137,7 @@ bool video_property_page::show(int idx)
// XXX is this a race condition?
thread->moveToThread(qApp->thread());
- QObject::connect(thread, &QThread::finished, qApp, [thread]() { thread->deleteLater(); }, Qt::DirectConnection);
+ QObject::connect(thread, &QThread::finished, qApp, [thread] { thread->deleteLater(); }, Qt::DirectConnection);
thread->start();
diff --git a/cv/video-widget.hpp b/cv/video-widget.hpp
index 15430e2f..8ad62a3c 100644
--- a/cv/video-widget.hpp
+++ b/cv/video-widget.hpp
@@ -16,7 +16,7 @@
#include <QObject>
#include <QWidget>
#include <QPainter>
-#include <QPaintEvent>
+#include <QtEvents>
#include <QTimer>
#include <QMutex>
#include <QMutexLocker>