OSDN Git Service

Add color names to color menu.
authorRandy Baumgarte <randy@fbn.cx>
Fri, 25 May 2012 13:13:19 +0000 (09:13 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Fri, 25 May 2012 13:13:19 +0000 (09:13 -0400)
src/cx/fbn/nevernote/gui/ColorMenu.java

index 759b96a..db5ef10 100644 (file)
@@ -54,6 +54,7 @@ public class ColorMenu extends Object {
                        pix.fill(color);\r
                        QAction newAction = new QAction(new QIcon(pix), "", parent);\r
                        newAction.setToolTip(colorNames.get(i));\r
                        pix.fill(color);\r
                        QAction newAction = new QAction(new QIcon(pix), "", parent);\r
                        newAction.setToolTip(colorNames.get(i));\r
+                       newAction.setText(colorNames.get(i));\r
                        newAction.hovered.connect(this, "itemHovered()");\r
                        menu.addAction(newAction);\r
                }\r
                        newAction.hovered.connect(this, "itemHovered()");\r
                        menu.addAction(newAction);\r
                }\r