If this is not done, the item remains selected and the user has to manually deselect it, which is bothersome.
popup->set_position(parent->mapToGlobal(
drag_point(parent->rect())), Popup::Bottom);
+ connect(popup, SIGNAL(closed()), this, SLOT(on_popup_closed()));
+
QFormLayout *const form = new QFormLayout(popup);
popup->setLayout(form);
return popup;
}
+void TimeMarker::on_popup_closed()
+{
+ select(false);
+}
+
void TimeMarker::on_value_changed(const pv::util::Timestamp& value)
{
set_time(view_.ruler()->get_absolute_time_from_ruler_time(value));
virtual pv::widgets::Popup* create_popup(QWidget *parent) override;
private Q_SLOTS:
+ void on_popup_closed();
+
void on_value_changed(const pv::util::Timestamp& value);
protected: