Skip to content

Commit

Permalink
removed redundant combobox filler function
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 31, 2025
1 parent 92a2946 commit c60bea8
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions dialogs/conf/triplestoredialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,7 @@ def __init__(self,triplestoreconf,prefixes,prefixstore,comboBox):
self.prefixstore=prefixstore
self.comboBox=comboBox
self.prefixes=prefixes
for item in triplestoreconf:
if "resource" in item and "type" in item["resource"] and item["resource"]["type"]=="file":
self.tripleStoreChooser.addItem(UIUtils.rdffileicon,
item["name"] + " [File]")
elif "type" in item:
if item["type"] == "geosparqlendpoint":
self.tripleStoreChooser.addItem(UIUtils.geoendpointicon, item["name"]+ " [GeoSPARQL Endpoint]")
elif item["type"]=="sparqlendpoint":
self.tripleStoreChooser.addItem(UIUtils.linkeddataicon,item["name"] + " [SPARQL Endpoint]")
elif item["type"]=="file":
self.tripleStoreChooser.addItem(UIUtils.rdffileicon,item["name"] + " [File]")
else:
self.tripleStoreChooser.addItem(item["name"]+" ["+str(item["type"])+"]")
UIUtils.createTripleStoreCBox(self.tripleStoreChooser,triplestoreconf)
self.tripleStoreChooser.currentIndexChanged.connect(self.loadTripleStoreConfig)
self.tripleStoreChooser.view().setVerticalScrollBarPolicy(Qt.ScrollBarAsNeeded)
self.geometryVariableComboBox.currentIndexChanged.connect(self.switchQueryVariableInput)
Expand Down

0 comments on commit c60bea8

Please sign in to comment.