Skip to content
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

GUI: Build Model(QAbstractItemModel), compatible with tree view #43

Closed
Tracked by #19
tangkong opened this issue Jul 1, 2024 · 2 comments · Fixed by #38 or #69
Closed
Tracked by #19

GUI: Build Model(QAbstractItemModel), compatible with tree view #43

tangkong opened this issue Jul 1, 2024 · 2 comments · Fixed by #38 or #69
Assignees
Labels
GUI Graphical User Interface related issue

Comments

@tangkong
Copy link
Contributor

tangkong commented Jul 1, 2024

Build qt model that displays a Entry objects in a QTreeView.

Some things to consider

  • How best to enable lazy loading of Entry objects. Does the model make lazy requests? Needs client to be configured for this.
    • What hooks exist? qt naturally has a QAbstractItemModel.canFetchMore method that is typically used to determine when more rows can be added (on scroll event or otherwise)
    • We also want to fetch information when the tree view tries to expand its children. This might better exist in the item when .child is called? Then perhaps the model would have to know about a Client.
  • Tree model and table model are different in nature (indexes operate with different assumptions)
  • This ideally works for any Entry, to enable displaying subtrees in child pages
@tangkong tangkong changed the title Build Model(QAbstractItemModel), compatible with tree and list views GUI: Build Model(QAbstractItemModel), compatible with tree and list views Jul 1, 2024
@tangkong tangkong changed the title GUI: Build Model(QAbstractItemModel), compatible with tree and list views GUI: Build Model(QAbstractItemModel), compatible with tree view Jul 1, 2024
@shilorigins shilorigins added the GUI Graphical User Interface related issue label Jul 1, 2024
@tangkong tangkong added this to the Minimum Viable Product milestone Jul 2, 2024
@tangkong tangkong self-assigned this Jul 3, 2024
@tangkong
Copy link
Contributor Author

tangkong commented Jul 3, 2024

Initial development in #38

@tangkong tangkong linked a pull request Jul 3, 2024 that will close this issue
8 tasks
@tangkong
Copy link
Contributor Author

I'll close this with #69, there are other tickets for the sub-items and I'm growing weary of tracking meta-tickets

@tangkong tangkong linked a pull request Jul 26, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI Graphical User Interface related issue
Projects
None yet
2 participants