21 if (!caption.isEmpty())
22 this->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
23 this->setText(caption);
24 connect(
this, SIGNAL(clicked()),
this, SLOT(clickedSlot()));
32 QPixmap pixmap(16,16);
34 this->setIcon(QIcon(pixmap));
37 void ColorSelectButton::clickedSlot()
39 QColor result = QColorDialog::getColor( mColor,
this,
"Select color", QColorDialog::ShowAlphaChannel | QColorDialog::DontUseNativeDialog);
40 if (!result.isValid())
55 this->setStatusTip(help);
56 this->setToolTip(help);