From 6b7276d99d34c7dffa640730e1d7e9c63f60e1dd Mon Sep 17 00:00:00 2001 From: uvos Date: Sat, 26 Jun 2021 15:21:33 +0200 Subject: [PATCH] improve status messages --- src/main.cpp | 1 + src/ui/mainwindow.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 68fb185..3b3e774 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -111,6 +111,7 @@ int main(int argc, char *argv[]) QObject::connect(&w, &MainWindow::sigEditProfiles, [&cameras, &w](){showProfileDialog(&cameras); w.refreshProfiles();}); QObject::connect(&pipe, &ImagePipeline::sigResult, w.mainImageViewer(), &CvImageViewer::setImage, Qt::QueuedConnection); + QObject::connect(&pipe, &ImagePipeline::sigResult, [&w](){w->statusMsg("idle");}); QObject::connect(&pipe, &ImagePipeline::sigInvalidProfile, &w, &MainWindow::profileInconpatible); QObject::connect(&w, &MainWindow::sigProfile, [&pipe](QString name) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 6b3b7e8..7f0ec41 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -17,6 +17,7 @@ MainWindow::MainWindow(QWidget *parent) connect(ui->actionCameras, &QAction::triggered, [this](bool checked){(void)checked; sigChooseCameras();}); connect(ui->actionProfile, &QAction::triggered, [this](bool checked){(void)checked; sigEditProfiles();}); connect(ui->comboBox, &QComboBox::currentTextChanged, this, &MainWindow::sigProfile); + connect(ui->pushButtonCapture, &QPushButton::clicked, [this](){statusMsg("captureing");}); connect(ui->pushButtonCapture, &QPushButton::clicked, this, &MainWindow::sigCapture); connect(ui->mainViewer, &CvImageViewer::sigValue, this, &MainWindow::setImageValue); connect(ui->actionOpen, &QAction::triggered, [this](bool checked){(void)checked; openImage();});