X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=dad9d680241ad4d59f4352c6dd80863d13b73cbd;hp=ee2227d55782d957b3fb08e00f3961819759d464;hb=48257a69ffad409c9893605d99cd6e15161dff4f;hpb=3d79f521396c8e908fd237f5328153165099f5c3;ds=sidebyside diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index ee2227d5..dad9d680 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -116,6 +116,8 @@ MainWindow::MainWindow(DeviceManager &device_manager, , menu_decoders_add_(new pv::widgets::DecoderMenu(this, true)) #endif { + qRegisterMetaType("util::Timestamp"); + setup_ui(); restore_ui_settings(); if (open_file_name.empty()) @@ -532,12 +534,15 @@ void MainWindow::setup_ui() SLOT(capture_state_changed(int))); connect(&session_, SIGNAL(device_selected()), this, SLOT(device_selected())); + connect(&session_, SIGNAL(trigger_event(util::Timestamp)), view_, + SLOT(trigger_event(util::Timestamp))); // Setup view_ events connect(view_, SIGNAL(sticky_scrolling_changed(bool)), this, SLOT(sticky_scrolling_changed(bool))); connect(view_, SIGNAL(always_zoom_to_fit_changed(bool)), this, SLOT(always_zoom_to_fit_changed(bool))); + } void MainWindow::select_init_device() {