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 );
40 if (!result.isValid())
55 this->setStatusTip(help);
56 this->setToolTip(help);
void setValue(const QString &key, const QVariant &value)
Settings * settings()
Shortcut for accessing the settings instance.
Namespace for all CustusX production code.