OSDN Git Service

Remove shortcut code that was causing an ambiguous shortcut setting for the "Paste...
authorRandy Baumgarte <randy@fbn.cx>
Thu, 19 Aug 2010 01:33:38 +0000 (21:33 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Sun, 22 Aug 2010 22:48:31 +0000 (18:48 -0400)
src/cx/fbn/nevernote/gui/ContentView.java

index a3484b7..43bf4c9 100644 (file)
@@ -26,9 +26,9 @@ import com.trolltech.qt.gui.QContextMenuEvent;
 import com.trolltech.qt.gui.QDropEvent;\r
 import com.trolltech.qt.gui.QKeyEvent;\r
 import com.trolltech.qt.gui.QKeySequence;\r
 import com.trolltech.qt.gui.QDropEvent;\r
 import com.trolltech.qt.gui.QKeyEvent;\r
 import com.trolltech.qt.gui.QKeySequence;\r
+import com.trolltech.qt.gui.QKeySequence.StandardKey;\r
 import com.trolltech.qt.gui.QMenu;\r
 import com.trolltech.qt.gui.QShortcut;\r
 import com.trolltech.qt.gui.QMenu;\r
 import com.trolltech.qt.gui.QShortcut;\r
-import com.trolltech.qt.gui.QKeySequence.StandardKey;\r
 import com.trolltech.qt.network.QNetworkRequest;\r
 import com.trolltech.qt.webkit.QWebPage;\r
 import com.trolltech.qt.webkit.QWebView;\r
 import com.trolltech.qt.network.QNetworkRequest;\r
 import com.trolltech.qt.webkit.QWebPage;\r
 import com.trolltech.qt.webkit.QWebView;\r
@@ -117,9 +117,9 @@ public class ContentView extends QWebView {
                pasteWithoutFormatAction.triggered.connect(parent, "pasteWithoutFormattingClicked()");\r
                contextMenu.addAction(pasteWithoutFormatAction); \r
                setupShortcut(pasteWithoutFormatAction, "Edit_Paste_Without_Formatting");\r
                pasteWithoutFormatAction.triggered.connect(parent, "pasteWithoutFormattingClicked()");\r
                contextMenu.addAction(pasteWithoutFormatAction); \r
                setupShortcut(pasteWithoutFormatAction, "Edit_Paste_Without_Formatting");\r
-               pasteWithoutFormatShortcut = new QShortcut(this);\r
-               pasteWithoutFormatShortcut.activated.connect(parent, "pasteWithoutFormattingClicked()");\r
-               setupShortcut(pasteWithoutFormatShortcut, "Edit_Paste_Without_Formatting");\r
+//             pasteWithoutFormatShortcut = new QShortcut(this);\r
+//             pasteWithoutFormatShortcut.activated.connect(parent, "pasteWithoutFormattingClicked()");\r
+//             setupShortcut(pasteWithoutFormatShortcut, "Edit_Paste_Without_Formatting");\r
                \r
                contextMenu.addSeparator();\r
                QMenu colorMenu = new QMenu(tr("Background Color"));\r
                \r
                contextMenu.addSeparator();\r
                QMenu colorMenu = new QMenu(tr("Background Color"));\r