◆ ColorPickerItem()
ColorPickerItem::ColorPickerItem |
( |
const QColor & |
color = Qt::white , |
|
|
const QString & |
text = QString() , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
Constructs a ColorPickerItem whose color is set to color, and whose name is set to text.
◆ ~ColorPickerItem()
ColorPickerItem::~ColorPickerItem |
( |
| ) |
|
◆ clicked
void ColorPickerItem::clicked |
( |
| ) |
|
|
signal |
◆ color()
QColor ColorPickerItem::color |
( |
| ) |
const |
Returns the item's color.
- See also
- text()
Referenced by ArchSite.Compass::buildCoordinates(), draftviewproviders.view_dimension.ViewProviderLinearDimension::draw_dim_arrows(), draftviewproviders.view_dimension.ViewProviderAngularDimension::draw_dim_arrows(), draftviewproviders.view_dimension.ViewProviderLinearDimension::draw_dim_overshoot(), draftviewproviders.view_dimension.ViewProviderLinearDimension::draw_ext_overshoot(), draftguitools.gui_trimex.Trimex::finish(), importSVG.svgHandler::format(), DraftGui.DraftToolBar::getcol(), DraftGui.DraftToolBar::getDefaultColor(), PathScripts.PathDressupDogbone.Marker::highlight(), ColorPickerPopup::keyPressEvent(), PathScripts.PathDressupDogbone.Marker::lowlight(), ArchPanel.ViewProviderPanelCut::onChanged(), ArchPanel.ViewProviderPanelSheet::onChanged(), draftviewproviders.view_dimension.ViewProviderLinearDimension::onChanged(), draftviewproviders.view_dimension.ViewProviderAngularDimension::onChanged(), FeaturePython.ViewProviderOctahedron::onChanged(), Mod.Test.unittestgui.ProgressBar::paint(), setColor(), draftguitools.gui_trackers.editTracker::setColor(), PathScripts.PathDressupTagGui.HoldingTagMarker::setEnabled(), DraftGui.DraftToolBar::setStyleButton(), and ColorPickerPopup::updateSelected().
◆ isSelected()
bool ColorPickerItem::isSelected |
( |
| ) |
const |
◆ mouseMoveEvent()
void ColorPickerItem::mouseMoveEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
◆ mousePressEvent()
void ColorPickerItem::mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
◆ mouseReleaseEvent()
void ColorPickerItem::mouseReleaseEvent |
( |
QMouseEvent * |
e | ) |
|
|
protected |
◆ paintEvent()
void ColorPickerItem::paintEvent |
( |
QPaintEvent * |
e | ) |
|
|
protected |
◆ selected
void ColorPickerItem::selected |
( |
| ) |
|
|
signal |
◆ setColor
void ColorPickerItem::setColor |
( |
const QColor & |
color, |
|
|
const QString & |
text = QString() |
|
) |
| |
|
slot |
Sets the item's color to color, and its name to text.
References color(), and text().
◆ setSelected()
void ColorPickerItem::setSelected |
( |
bool |
selected | ) |
|
◆ text()
QString ColorPickerItem::text |
( |
| ) |
const |
The documentation for this class was generated from the following file:
- FreeCAD/src/Mod/Spreadsheet/Gui/qtcolorpicker.cpp