OSDN Git Service

Add some of the context menu options to the main menu bar.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / gui / ContentView.java
index e3cac5b..1c461e1 100644 (file)
@@ -77,6 +77,7 @@ public class ContentView extends QWebView {
        QAction openAction;\r
        QAction insertQuickLinkAction;\r
        QShortcut insertQuickLinkShortcut;\r
+       QMenu imageMenu;\r
        \r
        QAction redBackgroundColor;\r
        \r
@@ -239,7 +240,7 @@ public class ContentView extends QWebView {
                insertDateTimeShortcut.activated.connect(parent, "insertDateTime()");\r
                setupShortcut(insertDateTimeShortcut, "Insert_DateTime");\r
                        \r
-               QMenu imageMenu = new QMenu();\r
+               imageMenu = new QMenu();\r
                imageMenu.setTitle(tr("Image"));\r
                contextMenu.addMenu(imageMenu);\r
                downloadImage = pageAction(QWebPage.WebAction.DownloadImageToDisk);\r