From 69cc802722c8264c0fd8b138a298d4820c11f1d8 Mon Sep 17 00:00:00 2001 From: Xavier Hallade Date: Wed, 27 Apr 2016 13:21:08 +0200 Subject: gui: show tracking hasn't started in preview area instead of "no video" "no video" wasn't clearly indicating that no tracking was done. Some first time users had hard times figuring out tracking had to be started. @sthalik: I've put an image mimicking what you did for "no video", feel free to change it or switch to plain text instead. --- gui/ui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gui/ui.cpp') diff --git a/gui/ui.cpp b/gui/ui.cpp index ffdbf867..a136f2aa 100755 --- a/gui/ui.cpp +++ b/gui/ui.cpp @@ -280,8 +280,14 @@ void MainWindow::updateButtonState(bool running, bool inertialp) ui.iconcomboProtocol->setEnabled ( not_running ); ui.iconcomboFilter->setEnabled ( not_running ); ui.iconcomboTrackerSource->setEnabled(not_running); - ui.video_frame_label->setVisible(not_running || inertialp); ui.profile_button->setEnabled(not_running); + ui.video_frame_label->setVisible(not_running || inertialp); + if(not_running) { + ui.video_frame_label->setPixmap(QPixmap(":/images/tracking-not-started.png")); + } + else { + ui.video_frame_label->setPixmap(QPixmap(":/images/no-feed.png")); + } } void MainWindow::reload_options() -- cgit v1.2.3