summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt/ftnoir_tracker_pt_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-22 14:23:03 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-22 14:25:28 +0200
commit76bd17e3c095e2379daf893427cb3d9d277a064e (patch)
tree44451ebce5c6988597ec098f9a4cdd502b7c0c8d /tracker-pt/ftnoir_tracker_pt_dialog.cpp
parent0a537e04b9b5fb38ea21cc71af78698afb98ff88 (diff)
tracker/pt: add color extraction modes
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt_dialog.cpp')
-rw-r--r--tracker-pt/ftnoir_tracker_pt_dialog.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt_dialog.cpp b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
index ccedeb78..fa159d34 100644
--- a/tracker-pt/ftnoir_tracker_pt_dialog.cpp
+++ b/tracker-pt/ftnoir_tracker_pt_dialog.cpp
@@ -81,6 +81,18 @@ TrackerDialog_PT::TrackerDialog_PT()
poll_tracker_info_impl();
connect(this, &TrackerDialog_PT::poll_tracker_info, this, &TrackerDialog_PT::poll_tracker_info_impl, Qt::DirectConnection);
+
+ static constexpr pt_color_type color_types[] = {
+ pt_color_normal,
+ pt_color_floppy_filter,
+ pt_color_red_only,
+ };
+
+ static constexpr unsigned color_type_sz = sizeof(color_types) / sizeof(*color_types);
+ for (unsigned k = 0; k < color_type_sz; k++)
+ ui.blob_color->setItemData(k, int(color_types[k]));
+
+ tie_setting(s.blob_color, ui.blob_color);
}
void TrackerDialog_PT::startstop_trans_calib(bool start)