From b49d5a968ff9426649f81234ebba858eb9e98307 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Fri, 31 Aug 2018 20:25:06 +0800 Subject: [PATCH] MdEditor: add shortcut hint to Toggle Live Preview --- src/vmdeditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vmdeditor.cpp b/src/vmdeditor.cpp index 5846f752..d75e8f55 100644 --- a/src/vmdeditor.cpp +++ b/src/vmdeditor.cpp @@ -384,6 +384,7 @@ void VMdEditor::contextMenuEvent(QContextMenuEvent *p_event) QAction *toggleLivePreviewAct = new QAction(tr("Live Preview For Graphs"), menu.data()); toggleLivePreviewAct->setToolTip(tr("Toggle live preview panel for graphs")); + VUtils::fixTextWithCaptainShortcut(toggleLivePreviewAct, "LivePreview"); connect(toggleLivePreviewAct, &QAction::triggered, this, [this]() { m_editTab->toggleLivePreview();