forked from qt-creator/qt-creator
ResourceEditor: Add text for keyboard shortcuts setting
Change-Id: Ifb6954c3fd203e3c9fae17a3ad2505b43ac35d98 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Takumi ASAKI
parent
6776b78655
commit
04e222784b
@@ -185,13 +185,13 @@ bool ResourceEditorPlugin::initialize(const QStringList &arguments, QString *err
|
||||
folderContextMenu->insertLocation(ProjectExplorer::Constants::G_FOLDER_FILES),
|
||||
m_openWithMenu);
|
||||
|
||||
m_copyPath = new Utils::ParameterAction(QString(), tr("Copy path \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||
m_copyPath = new Utils::ParameterAction(tr("Copy Path"), tr("Copy Path \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||
command = Core::ActionManager::registerAction(m_copyPath, Constants::C_COPY_PATH, projectTreeContext);
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
fileContextMenu->addAction(command, ProjectExplorer::Constants::G_FILE_OTHER);
|
||||
connect(m_copyPath, &QAction::triggered, this, &ResourceEditorPlugin::copyPathContextMenu);
|
||||
|
||||
m_copyUrl = new Utils::ParameterAction(QString(), tr("Copy url \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||
m_copyUrl = new Utils::ParameterAction(tr("Copy URL"), tr("Copy URL \"%1\""), Utils::ParameterAction::AlwaysEnabled, this);
|
||||
command = Core::ActionManager::registerAction(m_copyUrl, Constants::C_COPY_URL, projectTreeContext);
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
fileContextMenu->addAction(command, ProjectExplorer::Constants::G_FILE_OTHER);
|
||||
|
Reference in New Issue
Block a user