28 #if defined (HAVE_CONFIG_H) 42 setFocusPolicy (Qt::NoFocus);
44 connect (
this, SIGNAL (clicked (
void)), SLOT (
select_color (
void)));
50 QColor new_color = QColorDialog::getColor (
m_color);
52 if (new_color.isValid () && new_color !=
m_color)
67 = (
p ?
p->palette ().text ().color ().name () : QString (
"#000000"));
69 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)