41 if (!caption.isEmpty())
42 this->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
43 this->setText(caption);
44 connect(
this, SIGNAL(clicked()),
this, SLOT(clickedSlot()));
52 QPixmap pixmap(16,16);
54 this->setIcon(QIcon(pixmap));
57 void ColorSelectButton::clickedSlot()
59 QColor result = QColorDialog::getColor( mColor,
this,
"Select color", QColorDialog::ShowAlphaChannel );
60 if (!result.isValid())