Reset settings when clicking cancel (fixes #7) Make volume sliders clickable (fixes #9) Extend some labels (fixes #10) Created own component for SoundListWidgetItem (fixes #11) Add a clear button to the SetHotkeyDialog (fixes #14)
20 lines
339 B
C++
20 lines
339 B
C++
#ifndef SETTINGSTAB_H
|
|
#define SETTINGSTAB_H
|
|
|
|
#include <QWidget>
|
|
#include <json.hpp>
|
|
|
|
using json = nlohmann::json;
|
|
|
|
class SettingsTab : public QWidget
|
|
{
|
|
public:
|
|
SettingsTab(std::string _name, json _data);
|
|
std::string name;
|
|
json data = nullptr;
|
|
virtual json tabSettings() = 0;
|
|
virtual void reset() = 0;
|
|
};
|
|
|
|
#endif // SETTINGSTAB_H
|