5#ifndef BRUSHPROPERTYMANAGER_H
6#define BRUSHPROPERTYMANAGER_H
8#include <QtCore/qhash.h>
9#include <QtGui/qbrush.h>
10#include <QtGui/qicon.h>
46 static int brushStyleToIndex(Qt::BrushStyle st);
47 static Qt::BrushStyle brushStyleIndexToStyle(
int brushStyleIndex);
48 static QString brushStyleIndexToString(
int brushStyleIndex);
50 static const QMap<
int, QIcon> &brushStyleIcons();
53 PropertyToPropertyMap m_brushPropertyToStyleSubProperty;
54 PropertyToPropertyMap m_brushPropertyToColorSubProperty;
55 PropertyToPropertyMap m_brushStyleSubPropertyToProperty;
56 PropertyToPropertyMap m_brushColorSubPropertyToProperty;
58 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()