+ action_sdm_last_->setIcon(QIcon(":/icons/view-displaymode-last_segment.svg"));
+ action_sdm_last_->setText(tr("Display last segment only"));
+ connect(action_sdm_last_, SIGNAL(triggered(bool)),
+ this, SLOT(on_actionSDMLast_triggered()));
+
+ action_sdm_last_complete_->setIcon(QIcon(":/icons/view-displaymode-last_complete_segment.svg"));
+ action_sdm_last_complete_->setText(tr("Display last complete segment only"));
+ connect(action_sdm_last_complete_, SIGNAL(triggered(bool)),
+ this, SLOT(on_actionSDMLastComplete_triggered()));
+
+ action_sdm_single_->setIcon(QIcon(":/icons/view-displaymode-single_segment.svg"));
+ action_sdm_single_->setText(tr("Display a single segment"));
+ connect(action_view_show_cursors_, SIGNAL(triggered(bool)),
+ this, SLOT(on_actionSDMSingle_triggered()));
+
+ segment_display_mode_selector_->addAction(action_sdm_last_);
+ segment_display_mode_selector_->addAction(action_sdm_last_complete_);
+ segment_display_mode_selector_->addAction(action_sdm_single_);
+ segment_display_mode_selector_->setPopupMode(QToolButton::InstantPopup);
+ segment_display_mode_selector_->hide();
+