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): ...@@ -89,7 +89,7 @@ class AssetBrowser(QWidget):
Widget that will allow to browse the various assets Widget that will allow to browse the various assets
""" """
json_selected = pyqtSignal(["QString"]) jsonSelected = pyqtSignal(["QString"])
deletionRequested = pyqtSignal(["QString"]) deletionRequested = pyqtSignal(["QString"])
def __init__(self, parent=None): def __init__(self, parent=None):
...@@ -116,13 +116,13 @@ class AssetBrowser(QWidget): ...@@ -116,13 +116,13 @@ class AssetBrowser(QWidget):
self.view.customContextMenuRequested.connect(self.__open_menu) self.view.customContextMenuRequested.connect(self.__open_menu)
def __on_item_selected(self, index): 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. the corresponding JSON file path.
""" """
source_index = self.proxy_model.mapToSource(index) source_index = self.proxy_model.mapToSource(index)
if self.filesystem_model.type(source_index).lower() == "json file": 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): def __open_menu(self, position):
......
...@@ -68,7 +68,7 @@ class MainWindow(QMainWindow): ...@@ -68,7 +68,7 @@ class MainWindow(QMainWindow):
centralWidget.addWidget(self.assetWidget) centralWidget.addWidget(self.assetWidget)
self.setCentralWidget(centralWidget) 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) self.assetBrowser.deletionRequested.connect(self.assetWidget.delete_asset)
quitAction.triggered.connect(qApp.quit) quitAction.triggered.connect(qApp.quit)
aboutAction.triggered.connect(self.show_about) 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