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)
38 lines
792 B
C++
38 lines
792 B
C++
#ifndef SETTINGSTABGENERAL_H
|
|
#define SETTINGSTABGENERAL_H
|
|
|
|
#include <QWidget>
|
|
#include <QComboBox>
|
|
#include <QGridLayout>
|
|
#include <QLabel>
|
|
#include <QComboBox>
|
|
#include <QCheckBox>
|
|
#include <QPushButton>
|
|
#include <QHotkey>
|
|
|
|
#include <customkeysequenceedit.h>
|
|
|
|
#include <settingstab.h>
|
|
#include <soundplayback.h>
|
|
|
|
class SettingsTabGeneral : public SettingsTab
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SettingsTabGeneral(json _data, SoundPlayback* soundPlayback);
|
|
virtual json tabSettings() override;
|
|
virtual void reset() override;
|
|
|
|
private:
|
|
QComboBox* languageSelection;
|
|
CustomKeySequenceEdit* stopHotkey;
|
|
QComboBox* themeSelection;
|
|
SoundPlayback* soundPlayback;
|
|
QHotkey* hotkeyStop = nullptr;
|
|
|
|
void updateStopHotkey();
|
|
void updateTheme();
|
|
};
|
|
|
|
#endif // SETTINGSTABGENERAL_H
|