cleaned up and improved GameOptions Model & Page

- added array support
- cleaned up logic
- ran clang-format
- added description & default value columns
- added basic editing support (bools only) - no saving

Co-authored-by: TheLastRar <TheLastRar@users.noreply.github.com>
Signed-off-by: Tayou <tayou@gmx.net>
This commit is contained in:
Tayou
2023-02-27 17:30:30 +01:00
committed by Tayou
parent 564567a568
commit 511076d3ba
5 changed files with 587 additions and 236 deletions

View File

@ -2,6 +2,8 @@
/*
* Prism Launcher - Minecraft Launcher
* Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org>
* Copyright (C) 2023 Tayou <tayou@gmx.net>
* Copyright (C) 2023 TheLastRar <TheLastRar@users.noreply.github.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -67,4 +69,7 @@ class GameOptionsPage : public QWidget, public BasePage {
private: // data
Ui::GameOptionsPage* ui = nullptr;
std::shared_ptr<GameOptions> m_model;
private Q_SLOTS:
void OptionDoubleClicked(const QModelIndex& index);
};