#include <VP1ColorSelectButton.h>
Definition at line 20 of file VP1ColorSelectButton.h.
◆ VP1ColorSelectButton()
VP1ColorSelectButton::VP1ColorSelectButton |
( |
QWidget * |
parent = 0 , |
|
|
const QColor & |
initialcolor = Qt::black , |
|
|
int |
dim = 24 |
|
) |
| |
◆ ~VP1ColorSelectButton()
VP1ColorSelectButton::~VP1ColorSelectButton |
( |
| ) |
|
|
virtual |
◆ aboutToShowColorDialog
void VP1ColorSelectButton::aboutToShowColorDialog |
( |
| ) |
|
|
signal |
◆ color()
QColor VP1ColorSelectButton::color |
( |
| ) |
const |
◆ colorChanged
void VP1ColorSelectButton::colorChanged |
( |
const QColor & |
| ) |
|
|
signal |
◆ launchColorChooser
void VP1ColorSelectButton::launchColorChooser |
( |
| ) |
|
|
slot |
◆ setColButtonProperties()
void VP1ColorSelectButton::setColButtonProperties |
( |
QPushButton * |
pb, |
|
|
const QColor & |
col, |
|
|
int |
dim |
|
) |
| |
|
static |
Definition at line 49 of file VP1ColorSelectButton.cxx.
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);
◆ setColor
void VP1ColorSelectButton::setColor |
( |
const QColor & |
col | ) |
|
|
slot |
◆ setDimension
void VP1ColorSelectButton::setDimension |
( |
int |
dim | ) |
|
|
slot |
◆ setText()
void VP1ColorSelectButton::setText |
( |
const QString & |
s | ) |
|
◆ updateButton
void VP1ColorSelectButton::updateButton |
( |
| ) |
|
|
protectedslot |
◆ m_d
Imp* VP1ColorSelectButton::m_d |
|
private |
The documentation for this class was generated from the following files: