From 0278c40c233173f2306fb512a5bed9696b9b984c Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Tue, 5 Sep 2023 17:25:11 -0400 Subject: [PATCH] add comment --- src/superqt/combobox/_colormap_combobox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/superqt/combobox/_colormap_combobox.py b/src/superqt/combobox/_colormap_combobox.py index 3e9b07e5..896f8feb 100644 --- a/src/superqt/combobox/_colormap_combobox.py +++ b/src/superqt/combobox/_colormap_combobox.py @@ -155,6 +155,10 @@ def paint( else: painter.drawText(text_rect, option.displayAlignment, text) + # # use user friendly color name if available + # painter.setPen(_pick_font_color(colormap)) + # short_name = colormap.name.rsplit(":", 1)[-1] + # painter.drawText(rect, text_align, short_name) class QColormapComboBox(QComboBox): """A drop down menu for selecting colors.