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:
@@ -43,13 +43,13 @@ void ObjectInspectorPlugin::setWidget(pdf::PDFWidget* widget)
|
||||
|
||||
BaseClass::setWidget(widget);
|
||||
|
||||
m_objectInspectorAction = new QAction(QIcon(":/pdfplugins/objectinspector/object-inspector.svg"), tr("Object Inspector"), this);
|
||||
m_objectInspectorAction = new QAction(QIcon(":/pdfplugins/objectinspector/object-inspector.svg"), tr("Object &Inspector"), this);
|
||||
m_objectInspectorAction->setCheckable(false);
|
||||
m_objectInspectorAction->setObjectName("actionObjectInspector_ObjectInspector");
|
||||
|
||||
connect(m_objectInspectorAction, &QAction::triggered, this, &ObjectInspectorPlugin::onObjectInspectorTriggered);
|
||||
|
||||
m_objectStatisticsAction = new QAction(QIcon(":/pdfplugins/objectinspector/object-statistics.svg"), tr("Object Statistics"), this);
|
||||
m_objectStatisticsAction = new QAction(QIcon(":/pdfplugins/objectinspector/object-statistics.svg"), tr("Object &Statistics"), this);
|
||||
m_objectStatisticsAction->setCheckable(false);
|
||||
m_objectStatisticsAction->setObjectName("actionObjectInspector_ObjectStatistics");
|
||||
|
||||
@@ -78,6 +78,11 @@ std::vector<QAction*> ObjectInspectorPlugin::getActions() const
|
||||
return { m_objectInspectorAction, m_objectStatisticsAction };
|
||||
}
|
||||
|
||||
QString ObjectInspectorPlugin::getPluginMenuName() const
|
||||
{
|
||||
return tr("Object &Inspector");
|
||||
}
|
||||
|
||||
void ObjectInspectorPlugin::onObjectInspectorTriggered()
|
||||
{
|
||||
pdf::PDFCMSPointer cms = m_cmsManager->getCurrentCMS();
|
||||
|
@@ -40,6 +40,7 @@ public:
|
||||
virtual void setCMSManager(pdf::PDFCMSManager* manager) override;
|
||||
virtual void setDocument(const pdf::PDFModifiedDocument& document) override;
|
||||
virtual std::vector<QAction*> getActions() const override;
|
||||
virtual QString getPluginMenuName() const override;
|
||||
|
||||
private:
|
||||
void onObjectInspectorTriggered();
|
||||
|
Reference in New Issue
Block a user