OSDN Git Service

Changed selection behavior to match Evernote client in tag & notebook trees.
authorRandy Baumgarte <randy@fbn.cx>
Mon, 1 Nov 2010 23:43:16 +0000 (19:43 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Mon, 1 Nov 2010 23:43:16 +0000 (19:43 -0400)
src/cx/fbn/nevernote/gui/NotebookTreeWidget.java
src/cx/fbn/nevernote/gui/TagTreeWidget.java

index fcd9222..896b1a8 100644 (file)
@@ -82,7 +82,7 @@ public class NotebookTreeWidget extends QTreeWidget {
                if (Global.mimicEvernoteInterface) {\r
                        setSelectionMode(QAbstractItemView.SelectionMode.SingleSelection);\r
                } else\r
-                       setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);\r
+                       setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection);\r
 \r
 //     int width = Global.getColumnWidth("notebookTreeName");\r
 //             if (width>0)\r
index 8b155b7..66d31c2 100644 (file)
@@ -75,7 +75,8 @@ public class TagTreeWidget extends QTreeWidget {
                noteSignal = new NoteSignal();\r
                setDragDropMode(QAbstractItemView.DragDropMode.DragDrop);\r
        setHeaderLabels(headers);\r
-       setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);\r
+//     setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);\r
+       setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection);\r
        \r
                int width = Global.getColumnWidth("tagTreeName");\r
                if (width>0)\r