mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #172: access keys are missing from most menu items/action text strings
This commit is contained in:
@ -39,9 +39,9 @@ void OutputPreviewPlugin::setWidget(pdf::PDFWidget* widget)
|
||||
|
||||
BaseClass::setWidget(widget);
|
||||
|
||||
m_outputPreviewAction = new QAction(QIcon(":/pdfplugins/outputpreview/preview.svg"), tr("Output Preview"), this);
|
||||
m_outputPreviewAction = new QAction(QIcon(":/pdfplugins/outputpreview/preview.svg"), tr("&Output Preview"), this);
|
||||
m_outputPreviewAction->setObjectName("actionOutputPreview_OutputPreview");
|
||||
m_inkCoverageAction = new QAction(QIcon(":/pdfplugins/outputpreview/ink-coverage.svg"), tr("Ink Coverage"), this);
|
||||
m_inkCoverageAction = new QAction(QIcon(":/pdfplugins/outputpreview/ink-coverage.svg"), tr("&Ink Coverage"), this);
|
||||
m_inkCoverageAction->setObjectName("actionOutputPreview_InkCoverage");
|
||||
|
||||
connect(m_outputPreviewAction, &QAction::triggered, this, &OutputPreviewPlugin::onOutputPreviewTriggered);
|
||||
@ -65,6 +65,11 @@ std::vector<QAction*> OutputPreviewPlugin::getActions() const
|
||||
return { m_outputPreviewAction, m_inkCoverageAction };
|
||||
}
|
||||
|
||||
QString OutputPreviewPlugin::getPluginMenuName() const
|
||||
{
|
||||
return tr("Output Previe&w");
|
||||
}
|
||||
|
||||
void OutputPreviewPlugin::onOutputPreviewTriggered()
|
||||
{
|
||||
OutputPreviewDialog dialog(m_document, m_widget, m_widget);
|
||||
|
Reference in New Issue
Block a user