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:
@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user