4#ifndef BRUSHPROPERTYMANAGER_H
5#define BRUSHPROPERTYMANAGER_H
7#include <QtCore/qhash.h>
8#include <QtGui/qbrush.h>
9#include <QtGui/qicon.h>
45 static int brushStyleToIndex(Qt::BrushStyle st);
46 static Qt::BrushStyle brushStyleIndexToStyle(
int brushStyleIndex);
47 static QString brushStyleIndexToString(
int brushStyleIndex);
49 static const QMap<
int, QIcon> &brushStyleIcons();
52 PropertyToPropertyMap m_brushPropertyToStyleSubProperty;
53 PropertyToPropertyMap m_brushPropertyToColorSubProperty;
54 PropertyToPropertyMap m_brushStyleSubPropertyToProperty;
55 PropertyToPropertyMap m_brushColorSubPropertyToProperty;
57 QHash<
const QtProperty *, QBrush> m_brushValues;
static const char * brushStyles[]
The QtProperty class encapsulates an instance of a property.
void addSubProperty(QtProperty *property)
Appends the given property to this property's subproperties.
The QtVariantPropertyManager class provides and manages QVariant based properties.
QtVariantProperty * variantProperty(const QtProperty *property) const
Returns the given property converted into a QtVariantProperty.
The QtVariantProperty class is a convenience class handling QVariant based properties.
int valueChanged(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value)
bool valueIcon(const QtProperty *property, QIcon *icon) const
bool uninitializeProperty(QtProperty *property)
bool valueText(const QtProperty *property, QString *text) const
void slotPropertyDestroyed(QtProperty *property)
void initializeProperty(QtVariantPropertyManager *vm, QtProperty *property, int enumTypeId)
bool value(const QtProperty *property, QVariant *v) const
int setValue(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value)
Auxiliary methods to store/retrieve settings.
static void clearBrushIcons()