Skip to content
Permalink
Browse files

Some visual tweaks to property assistant widget

  • Loading branch information
nyalldawson committed Feb 14, 2017
1 parent 9c19142 commit 2df37a2313ebc17ab7b6e17357b97f63144a60a3
Showing with 12 additions and 2 deletions.
  1. +4 −2 src/gui/qgspropertyassistantwidget.cpp
  2. +8 −0 src/ui/qgspropertyassistantwidgetbase.ui
@@ -164,7 +164,7 @@ void QgsPropertyAssistantWidget::updatePreview()
mPreviewList.clear();

QList<double> breaks = QgsSymbolLayerUtils::prettyBreaks( minValueSpinBox->value(),
maxValueSpinBox->value(), 4 );
maxValueSpinBox->value(), 8 );

QList< QgsSymbolLegendNode* > nodes = mTransformerWidget->generatePreviews( breaks, mLayerTreeLayer, mSymbol.get(), minValueSpinBox->value(),
maxValueSpinBox->value() );
@@ -181,7 +181,9 @@ void QgsPropertyAssistantWidget::updatePreview()
const QSize minSize( node->minimumIconSize() );
node->setIconSize( minSize );
widthMax = qMax( minSize.width(), widthMax );
mPreviewList.appendRow( new QStandardItem( node->data( Qt::DecorationRole ).value<QPixmap>(), QString::number( breaks[i] ) ) );
QStandardItem* item = new QStandardItem( node->data( Qt::DecorationRole ).value<QPixmap>(), QString::number( breaks[i] ) );
item->setEditable( false );
mPreviewList.appendRow( item );
delete node;
i++;
}
@@ -121,6 +121,14 @@
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Fetch value range from layer</string>
</property>
<property name="icon">
<iconset>
<normalon>:/images/themes/default/mActionDraw.svg</normalon>
</iconset>
</property>
</widget>
</item>
<item row="0" column="1" colspan="2">

0 comments on commit 2df37a2

Please sign in to comment.
You can’t perform that action at this time.