38 setFocusPolicy (Qt::NoFocus);
40 connect (
this, SIGNAL (clicked ()), SLOT (
select_color ()));
47 QColor new_color = QColorDialog::getColor (
_color);
48 if (new_color.isValid () && new_color !=
_color)
63 = p ? p->palette ().text ().color ().name () : QString (
"#000000");
65 QString css = QString (
"background-color: %1; border: 1px solid %2;")