34 attributeFields = mVectorLayer->
fields();
38 for ( ; entryIt != entries.
constEnd(); ++entryIt )
44 cb->
setChecked( !entryIt->initialValue.isEmpty() );
45 item->
setData( 0, Qt::UserRole, entryIt->property );
46 mTreeWidget->setItemWidget( item, 0, cb );
51 few->
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Maximum );
52 few->
setLayer( const_cast<QgsVectorLayer*>( vl ) );
53 few->
setField( entryIt->initialValue );
54 mTreeWidget->setItemWidget( item, 1, few );
57 item->
setText( 2, entryIt->helpText );
59 mTreeWidget->addTopLevelItem( item );
62 for (
int c = 0; c != mTreeWidget->columnCount() - 1; c++ )
63 mTreeWidget->resizeColumnToContents( c );
78 int rowCount = mTreeWidget->topLevelItemCount();
79 for (
int i = 0; i < rowCount; ++i )
97 propertyMap.
insert( propertyKey, expressionString );
104 return tr(
"double" );
109 return tr(
"'<red>,<green>,<blue>,<alpha>'" );
119 return tr(
"'<filename>'" );
125 return "'left'|'center'|'right'";
131 return "'top'|'center'|'bottom'";
136 return tr(
"'linear'|'radial'|'conical'" );
141 return tr(
"'feature'|'viewport'" );
146 return tr(
"'pad'|'repeat'|'reflect'" );
151 return tr(
"0 (false)|1 (true)" );
156 return "'no'|'solid'|'dash'|'dot'|'dash dot'|'dash dot dot'";
161 return "'bevel'|'miter'|'round'";
166 return "'square'|'flat'|'round'";
171 return "'solid'|'horizontal'|'vertical'|'cross'|'b_diagonal'|'f_diagonal'|" 172 "'diagonal_x'|'dense1'|'dense2'|'dense3'|'dense4'|'dense5'|" 173 "'dense6'|'dense7'|'no'";
QByteArray toByteArray() const
static Q_DECL_DEPRECATED QString gradientSpreadHelpText()
static Q_DECL_DEPRECATED QString gradientCoordModeHelpText()
static Q_DECL_DEPRECATED QString fileNameHelpText()
static Q_DECL_DEPRECATED QString lineStyleHelpText()
Container of fields for a vector layer.
static Q_DECL_DEPRECATED QString offsetHelpText()
static Q_DECL_DEPRECATED QString horizontalAnchorHelpText()
Q_DECL_DEPRECATED QgsDataDefinedSymbolDialog(const QList< DataDefinedSymbolEntry > &entries, const QgsVectorLayer *vl, QWidget *parent=nullptr, const Qt::WindowFlags &f=nullptr)
QString tr(const char *sourceText, const char *disambiguation, int n)
QgsFields fields() const
Returns the list of fields of this layer.
static Q_DECL_DEPRECATED QString fillStyleHelpText()
void setValue(const QString &key, const QVariant &value)
static Q_DECL_DEPRECATED QString doubleHelpText()
static Q_DECL_DEPRECATED QString joinStyleHelpText()
static Q_DECL_DEPRECATED QString gradientTypeHelpText()
static Q_DECL_DEPRECATED QString capStyleHelpText()
QVariant value(const QString &key, const QVariant &defaultValue) const
Q_DECL_DEPRECATED QMap< QString, QString > dataDefinedProperties() const
~QgsDataDefinedSymbolDialog()
void setText(int column, const QString &text)
iterator insert(const Key &key, const T &value)
const_iterator constEnd() const
const_iterator constBegin() const
static Q_DECL_DEPRECATED QString boolHelpText()
Represents a vector layer which manages a vector based data sets.
static Q_DECL_DEPRECATED QString colorHelpText()
static Q_DECL_DEPRECATED QString verticalAnchorHelpText()