diff options
| author | Xavier Hallade <xavier.hallade@intel.com> | 2016-04-27 13:21:08 +0200 |
|---|---|---|
| committer | Xavier Hallade <xavier.hallade@intel.com> | 2016-04-27 13:21:08 +0200 |
| commit | 69cc802722c8264c0fd8b138a298d4820c11f1d8 (patch) | |
| tree | 32571d318fe8fa2a3926a96ecaffa9b462a38658 /gui/ui.cpp | |
| parent | f3d62b23b02bb27cbb0f0f0302001f0710992df2 (diff) | |
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.
Diffstat (limited to 'gui/ui.cpp')
| -rwxr-xr-x | gui/ui.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp index ffdbf8677..a136f2aa8 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() |
