Skip to content

Commit

Permalink
change to using QgsPointCloudAttributeComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Dec 3, 2020
1 parent 67a4cc4 commit 6476273
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/app/3d/qgspointcloud3dsymbolwidget.cpp
Expand Up @@ -27,10 +27,7 @@ QgsPointCloud3DSymbolWidget::QgsPointCloud3DSymbolWidget( QgsPointCloudLayer *la

mPointSizeSpinBox->setClearValue( 2.0 );

for ( QgsPointCloudAttribute attr : layer->attributes().attributes() )
{
mRenderingParameterComboBox->addItem( attr.name() );
}
mRenderingParameterComboBox->setLayer( layer );

if ( symbol )
setSymbol( symbol );
Expand Down
7 changes: 6 additions & 1 deletion src/ui/3d/qgspointcloud3dsymbolwidget.ui
Expand Up @@ -171,7 +171,7 @@
</widget>
</item>
<item row="0" column="2" colspan="3">
<widget class="QComboBox" name="mRenderingParameterComboBox"/>
<widget class="QgsPointCloudAttributeComboBox" name="mRenderingParameterComboBox"/>
</item>
<item row="0" column="0" colspan="2">
<widget class="QLabel" name="label_5">
Expand Down Expand Up @@ -206,6 +206,11 @@
<header>qgscolorbutton.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>QgsPointCloudAttributeComboBox</class>
<extends>QComboBox</extends>
<header>qgspointcloudattributecombobox.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
Expand Down

0 comments on commit 6476273

Please sign in to comment.