Версия с упрощённым GUI
This commit is contained in:
27
settingsdialog.h
Normal file
27
settingsdialog.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef SETTINGSDIALOG_H
|
||||
#define SETTINGSDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QSettings>
|
||||
|
||||
namespace Ui {
|
||||
class SettingsDialog;
|
||||
}
|
||||
|
||||
class SettingsDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SettingsDialog(QWidget *parent = nullptr);
|
||||
~SettingsDialog();
|
||||
|
||||
private slots:
|
||||
void accept(); // Переопределяем слот, чтобы сохранить настройки
|
||||
|
||||
private:
|
||||
Ui::SettingsDialog *ui;
|
||||
QSettings *settings;
|
||||
};
|
||||
|
||||
#endif // SETTINGSDIALOG_H
|
||||
Reference in New Issue
Block a user