Sun, 10 Jun 2018 15:53:21 +0300
show the color index in the color button
src/widgets/colorbutton.cpp | file | annotate | diff | comparison | revisions |
--- a/src/widgets/colorbutton.cpp Sun Jun 10 12:12:50 2018 +0300 +++ b/src/widgets/colorbutton.cpp Sun Jun 10 15:53:21 2018 +0300 @@ -55,7 +55,7 @@ if (_color.isValid()) { setFlat(true); - setText(_color.name()); + setText(format("[%1] %2", _color.indexString(), _color.name())); setStyleSheet(format( "background-color: %1; color: %2; border:none;", _color.hexcode(),