Skip to content

Commit

Permalink
fix: display utility button icons
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed May 9, 2024
1 parent 1a69192 commit 7f1b3eb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,15 @@ def __init__(self, iface, parent=None):
self.routing_fromline_list.model().rowsMoved.connect(self._reindex_list_items)
self.routing_fromline_list.model().rowsRemoved.connect(self._reindex_list_items)

# Add icons to buttons
self.routing_fromline_map.setIcon(gui.GuiUtils.get_icon("icon_add.png"))
self.routing_fromline_clear.setIcon(gui.GuiUtils.get_icon("icon_clear.png"))
self.save_vertices.setIcon(gui.GuiUtils.get_icon("save_vertices.png"))
self.provider_refresh.setIcon(gui.GuiUtils.get_icon("icon_refresh.png"))
self.provider_config.setIcon(gui.GuiUtils.get_icon("icon_settings.png"))
self.about_button.setIcon(gui.GuiUtils.get_icon("icon_about.png"))
self.help_button.setIcon(gui.GuiUtils.get_icon("icon_help.png"))

def _save_vertices_to_layer(self):
"""Saves the vertices list to a temp layer"""
items = [
Expand Down

0 comments on commit 7f1b3eb

Please sign in to comment.