void HelpEditor::PerspectiveDeactivated(const SmartPointer<IWorkbenchPage>& /*page*/, const IPerspectiveDescriptor::Pointer& perspective) { if (perspective->GetId() == HelpPerspective::ID) { m_OpenHelpMode->setVisible(true); m_CloseHelpMode->setVisible(false); } }
void PerspectiveActivated(IWorkbenchPage::Pointer /*page*/, IPerspectiveDescriptor::Pointer perspective) { QAction* action = switcher->perspIdToActionMap[QString::fromStdString(perspective->GetId())]; if (action) action->setChecked(true); }
void PerspectiveActivated(const IWorkbenchPage::Pointer& /*page*/, const IPerspectiveDescriptor::Pointer& perspective) override { QAction* action = switcher->perspIdToActionMap[perspective->GetId()]; if (action) action->setChecked(true); }