show the color index in the color button

Sun, 10 Jun 2018 15:53:21 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Sun, 10 Jun 2018 15:53:21 +0300
changeset 1396
3442a59ab05c
parent 1395
23551de3da36
child 1397
5d5c11af0268

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(),

mercurial