42 if (!caption.isEmpty())
43 this->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
44 this->setText(caption);
45 connect(
this, SIGNAL(clicked()),
this, SLOT(clickedSlot()));
53 QPixmap pixmap(16,16);
55 this->setIcon(QIcon(pixmap));
58 void ColorSelectButton::clickedSlot()
60 QColor result = QColorDialog::getColor( mColor,
this,
"Select color", QColorDialog::ShowAlphaChannel );
61 if (!result.isValid())
76 this->setStatusTip(help);
77 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.