Commit Graph

7 Commits

Author SHA1 Message Date
Chris PeBenito
136123c072 ModelRoles: Create enum for model data() method.
Tighten the data() methods for models by creating an enum for apol's
use of QtCore.Qt.ItemDataRole.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-02-14 09:11:35 -05:00
Chris PeBenito
ccae23f435 Add new NetifconQueryTab implementation.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-02-14 09:11:35 -05:00
Chris PeBenito
7e9d0fded9 Update to PyQt6.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-02-14 09:11:35 -05:00
Chris PeBenito
b219b44b53 models: Merge list models into table models.
The table model can handle lists as a single/first column.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-02-14 09:11:35 -05:00
Chris PeBenito
2d755c46ca Clean up item model classes.
* Remove "Model" from names of model classes.
* Remove remaining *_detail() functions.
* Add typing.
* Make models dir a package.
* Update for superclass data() method as fallback.
* Switch to match/case statements.

Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-02-14 09:11:28 -05:00
Chris PeBenito
40254914ae Split SEToolsTableModel and SEToolsListModel into separate modules.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-01-31 10:11:55 -05:00
Chris PeBenito
af7754076e Move table/list models into Python submodule.
Signed-off-by: Chris PeBenito <pebenito@ieee.org>
2024-01-31 10:11:55 -05:00