OSDN Git Service

Change case sensitivity for notebooks, tags, & saved searches.
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / gui / TagTreeWidget.java
index 5cc0896..ee4d161 100644 (file)
@@ -84,6 +84,7 @@ public class TagTreeWidget extends QTreeWidget {
                noteSignal = new NoteSignal();\r
                setDragDropMode(QAbstractItemView.DragDropMode.DragDrop);\r
        setHeaderLabels(headers);\r
+\r
 //     setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);\r
        setSelectionMode(QAbstractItemView.SelectionMode.ExtendedSelection);\r
        \r
@@ -93,6 +94,7 @@ public class TagTreeWidget extends QTreeWidget {
                if (width>0)\r
                        setColumnWidth(0, width);\r
 \r
+               \r
        }\r
        \r
        public void setEditAction(QAction e) {\r
@@ -114,11 +116,11 @@ public class TagTreeWidget extends QTreeWidget {
        public void insertTag(String name, String guid) {\r
        String iconPath = new String("classpath:cx/fbn/nevernote/icons/");\r
                QIcon icon = new QIcon(iconPath+"tag.png");\r
-               QTreeWidgetItem child;\r
+               NTreeWidgetItem child;\r
                Qt.Alignment ra = new Qt.Alignment(Qt.AlignmentFlag.AlignRight);\r
                \r
                // Build new tag & add it\r
-               child = new QTreeWidgetItem();\r
+               child = new NTreeWidgetItem();\r
                child.setText(0, name);\r
                child.setIcon(0,icon);\r
                child.setText(2, guid);\r
@@ -172,8 +174,8 @@ public class TagTreeWidget extends QTreeWidget {
        \r
        public void load(List<Tag> tags) {\r
        Tag tag;\r
-       List<QTreeWidgetItem> index = new ArrayList<QTreeWidgetItem>();\r
-       QTreeWidgetItem child;\r
+       List<NTreeWidgetItem> index = new ArrayList<NTreeWidgetItem>();\r
+       NTreeWidgetItem child;\r
                        \r
        /* First, let's find out which stacks are expanded */\r
        QTreeWidgetItem root =  invisibleRootItem();\r
@@ -198,7 +200,7 @@ public class TagTreeWidget extends QTreeWidget {
                for (int i=0; i<tempList.size(); i++) {\r
                        tag = tempList.get(i);\r
                        if (tag.getParentGuid()==null || tag.getParentGuid().equals("")) {\r
-                               child = new QTreeWidgetItem();\r
+                               child = new NTreeWidgetItem();\r
                                child.setText(0, tag.getName());\r
                                if (icons != null && !icons.containsKey(tag.getGuid())) {\r
                                        child.setIcon(0, findDefaultIcon(tag.getGuid()));\r
@@ -215,7 +217,7 @@ public class TagTreeWidget extends QTreeWidget {
                                // We need to find the parent\r
                                for (int j=0; j<index.size(); j++) {\r
                                        if (index.get(j).text(2).equals(tag.getParentGuid())) {\r
-                                       child = new QTreeWidgetItem();\r
+                                       child = new NTreeWidgetItem();\r
                                        child.setText(0, tag.getName());\r
                                        child.setIcon(0, icon);\r
                                        child.setText(2, tag.getGuid());\r
@@ -480,4 +482,6 @@ public class TagTreeWidget extends QTreeWidget {
                        rightButtonClicked = false;\r
                super.mousePressEvent(e);\r
        }\r
+\r
+       \r
 }\r