Move Autogenerated UI code into Private sections of the window classes

This commit is contained in:
Dmitry K 2025-06-05 03:21:13 +04:00 committed by Adam Honse
parent 4c6bf55c8a
commit 6793d4a3a0
45 changed files with 940 additions and 531 deletions

View file

@ -10,11 +10,14 @@
#pragma once
#include <QWidget>
#include "ui_OpenRGBQMKORGBSettingsEntry.h"
#include "nlohmann/json.hpp"
using json = nlohmann::json;
namespace Ui
{
class OpenRGBQMKORGBSettingsEntry;
class OpenRGBQMKORGBSettingsEntryUi;
}
class Ui::OpenRGBQMKORGBSettingsEntry : public QWidget
@ -27,5 +30,10 @@ private slots:
public:
explicit OpenRGBQMKORGBSettingsEntry(QWidget *parent = nullptr);
~OpenRGBQMKORGBSettingsEntry();
void loadFromSettings(const json& data);
json saveSettings();
const char* settingsSection();
private:
Ui::OpenRGBQMKORGBSettingsEntryUi *ui;
};