29 #if defined (HAVE_CONFIG_H)
43 setFocusPolicy (Qt::NoFocus);
45 connect (
this, SIGNAL (clicked (
void)), SLOT (
select_color (
void)));
51 QColor new_color = QColorDialog::getColor (
m_color);
53 if (new_color.isValid () && new_color !=
m_color)
68 = (p ? p->palette ().text ().color ().name () : QString (
"#000000"));
70 setStyleSheet (QString (
"background-color: %1; border: 1px solid %2;")
virtual void update_button(void)
color_picker(QColor color=QColor(0, 0, 0), QWidget *parent=nullptr)