|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #include <QColorDialog>
43 if (objectName().isEmpty())
44 setObjectName(
"VP1ColorSelectButton");
54 if (
pb->objectName().isEmpty()) {
55 VP1Msg::messageDebug(
"VP1ColorSelectButton::setColButtonProperties() WARNING: Empty objectName()!!");
56 pb->setObjectName(
"VP1ColorSelectButton_setColButtonProperties");
59 if (!
pb->text().isEmpty()) {
60 VP1Msg::messageDebug(
"VP1ColorSelectButton::setColButtonProperties() WARNING: Noticed non-empty text field. Clearing!");
61 pb->QPushButton::setText(
"");
64 pb->setStyleSheet(
"QPushButton#"+
pb->objectName()+
" { background-color: "
65 +
col.name()+
"; border-color: "+
col.name()+
"; }");
66 pb->setFocusPolicy(Qt::NoFocus);
69 QSizePolicy sp(QSizePolicy::Fixed, QSizePolicy::Fixed);
70 sp.setHorizontalStretch(0);
71 sp.setVerticalStretch(0);
72 sp.setHeightForWidth(
pb->sizePolicy().hasHeightForWidth());
73 pb->setSizePolicy(sp);
74 pb->setMinimumSize(
sz);
75 pb->setMaximumSize(
sz);
unsigned long getColor(unsigned int r, unsigned int g, unsigned int b)
static void messageVerbose(const QString &)
static void messageDebug(const QString &)