mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-18 03:37:04 +02:00
[desktop] Basic grid view implementation (#3479)
Closes #3441 Basic impl of a grid view on the game list. The ideal solution here would be to use QSortFilterProxyModel and abstract the game list model out to a QStandardItemModel, but that is too much effort for me rn. Adapted the "card" design from QML, can 1000% be improved but QPainter is just such a pain to deal with. Implanting a Qt Quick scene into there would legitimately be easier. Anyways, margins and text sizes lgtm at all sizes, though please give feedback on both that and the general card design. Future TODOs: - [ ] Auto size mode - [ ] Refactor to use models Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3479
This commit is contained in:
parent
69aff83ef4
commit
b9e052b3a7
19 changed files with 517 additions and 122 deletions
|
|
@ -105,6 +105,13 @@
|
|||
<string>&Debugging</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Game_List_Mode">
|
||||
<property name="title">
|
||||
<string>&Game List Mode</string>
|
||||
</property>
|
||||
<addaction name="action_Tree_View"/>
|
||||
<addaction name="action_Grid_View"/>
|
||||
</widget>
|
||||
<action name="action_Reset_Window_Size_720">
|
||||
<property name="text">
|
||||
<string>Reset Window Size to &720p</string>
|
||||
|
|
@ -137,6 +144,7 @@
|
|||
<addaction name="separator"/>
|
||||
<addaction name="menu_Reset_Window_Size"/>
|
||||
<addaction name="menu_View_Debugging"/>
|
||||
<addaction name="menu_Game_List_Mode"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Multiplayer">
|
||||
<property name="enabled">
|
||||
|
|
@ -562,6 +570,22 @@
|
|||
<string>&Data Manager</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_Tree_View">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Tree View</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_Grid_View">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Grid View</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="yuzu.qrc"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue