# HG changeset patch # User Teemu Piippo # Date 1528635201 -10800 # Node ID 3442a59ab05c36cbc8b5c19e2c4423cf2828fbd9 # Parent 23551de3da36ecff88dcc015896b2d5a780aecd1 show the color index in the color button diff -r 23551de3da36 -r 3442a59ab05c src/widgets/colorbutton.cpp --- 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(),