Skip to content

Commit

Permalink
fix a crash about color button
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Feb 7, 2020
1 parent 3f8dda6 commit 3696018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion definitions/tooltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self):
'tooltip': tr('If you want to display geometry with the tooltip.')
}
self._layer_config['colorGeom'] = {
'type': InputType.Color,
'type': InputType.Text,
'header': tr('Color'),
'default': '',
'tooltip': tr('The color to use for displaying the geometry.')
Expand Down
14 changes: 1 addition & 13 deletions resources/ui/ui_form_tooltip.ui
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,7 @@
</widget>
</item>
<item row="3" column="1">
<widget class="QgsColorButton" name="color">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="QLineEdit" name="color"/>
</item>
</layout>
</item>
Expand Down Expand Up @@ -98,11 +91,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QgsColorButton</class>
<extends>QToolButton</extends>
<header>qgis.gui</header>
</customwidget>
<customwidget>
<class>QgsFieldComboBox</class>
<extends>QComboBox</extends>
Expand Down

0 comments on commit 3696018

Please sign in to comment.