Commit afd55e03 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[widgets] Cleanup: make all signals camel case

parent 1dbe578c
......@@ -89,7 +89,7 @@ class AssetBrowser(QWidget):
Widget that will allow to browse the various assets
"""
json_selected = pyqtSignal(["QString"])
jsonSelected = pyqtSignal(["QString"])
deletionRequested = pyqtSignal(["QString"])
def __init__(self, parent=None):
......@@ -116,13 +116,13 @@ class AssetBrowser(QWidget):
self.view.customContextMenuRequested.connect(self.__open_menu)
def __on_item_selected(self, index):
"""When an item is selected, emit the json_selected signal with
"""When an item is selected, emit the jsonSelected signal with
the corresponding JSON file path.
"""
source_index = self.proxy_model.mapToSource(index)
if self.filesystem_model.type(source_index).lower() == "json file":
self.json_selected.emit(self.filesystem_model.filePath(source_index))
self.jsonSelected.emit(self.filesystem_model.filePath(source_index))
def __open_menu(self, position):
......
......@@ -68,7 +68,7 @@ class MainWindow(QMainWindow):
centralWidget.addWidget(self.assetWidget)
self.setCentralWidget(centralWidget)
self.assetBrowser.json_selected.connect(self.assetWidget.load_json)
self.assetBrowser.jsonSelected.connect(self.assetWidget.load_json)
self.assetBrowser.deletionRequested.connect(self.assetWidget.delete_asset)
quitAction.triggered.connect(qApp.quit)
aboutAction.triggered.connect(self.show_about)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment