]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.cpp
In Futatabi, make it possible to set custom source labels.
[nageru] / futatabi / mainwindow.cpp
index 0ebb75ca35ba22f737c0a7a772d062fa332ffc18..49581e53caeb134d180b1bba5546a8083fec05fa 100644 (file)
@@ -324,7 +324,11 @@ void MainWindow::change_num_cameras()
                display->setAutoFillBackground(true);
                layout->addWidget(display);
 
-               display->set_overlay(to_string(i + 1));
+               if (global_flags.source_labels.count(i + 1)) {
+                       display->set_overlay(global_flags.source_labels[i + 1]);
+               } else {
+                       display->set_overlay(to_string(i + 1));
+               }
 
                QPushButton *preview_btn = new QPushButton(this);
                preview_btn->setMaximumSize(20, 17);