-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor filesPage.py: Changed Files List QtWidgets.QListWidgetItem to our custom EntryListModel
#126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
…itemclick helper_methods: updated the get_file_loc method to return always the filename instead of the full path Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
…file_name Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
…g commented lines Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: Guilherme Costa <guiherme.costa@blockstec.com>
Signed-off-by: gmmcosta15 <guilherme.costa@blockstec.com>
filesPage.py changed QtWidgets.QListWidgetItem to our custom EntryListModelfilesPage.py: Changed Files ListQtWidgets.QListWidgetItem to our custom EntryListModel
filesPage.py: Changed Files ListQtWidgets.QListWidgetItem to our custom EntryListModelfilesPage.py: Changed Files List QtWidgets.QListWidgetItem to our custom EntryListModel
HugoCLSC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good, only two remarks :
- Some method docstrings were deleted due to a previous rebase/merge
- The files list is not centered on the page, it's currently shifted to the left.
Just fix these two things and it will be accepted
| logger.debug("Item Selected") | ||
|
|
||
| @QtCore.pyqtSlot(name="reset-dir") | ||
| def reset_dir(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docstring
| self.curr_dir = "" | ||
| self.request_dir_info[str].emit(self.curr_dir) | ||
|
|
||
| def showEvent(self, a0: QtGui.QShowEvent) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docstring
| return super().showEvent(a0) | ||
|
|
||
| @QtCore.pyqtSlot(list, name="on-file-list") | ||
| def on_file_list(self, file_list: list) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docstring
| # self._build_file_list() | ||
|
|
||
| @QtCore.pyqtSlot(list, name="on-dirs") | ||
| def on_directories(self, directories_data: list) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing docstring
Set file list to refresh after 1.5s to improve UI responsiveness. Clicks are now handled in the _on_item_selected slot instead of inline callbacks to separate logic and unify behavior.
What Changed?
helper_methods.pyCreated method
get_file_namethat accepts a string with the filepath and returns only the filenamelib/panels/widget/filesPage.pyChanged implementation of how the files are showed, from a ´QtWidgets.QListWidgetItem´ to our custom
EntryListModelScreenshots
Future Work
on_delete_fileSlot