mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Вынес настройки ГУИ в отдельную кнопку
This commit is contained in:
39
InstructorsAndTrainees/dialogsettings.h
Normal file
39
InstructorsAndTrainees/dialogsettings.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef DIALOGSETTINGS_H
|
||||
#define DIALOGSETTINGS_H
|
||||
|
||||
#include <QDialog>
|
||||
#include <QTranslator>
|
||||
#include <QEvent>
|
||||
|
||||
namespace Ui {
|
||||
class DialogSettings;
|
||||
}
|
||||
|
||||
class DialogSettings : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DialogSettings(QWidget *parent = nullptr);
|
||||
~DialogSettings();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent * event) override;
|
||||
|
||||
signals:
|
||||
//сигнал об изменении языка интерфейса
|
||||
void signal_LanguageChanged(QString language);
|
||||
//сигнал об изменении стиля
|
||||
void signal_UpdateStyleSheet();
|
||||
|
||||
private slots:
|
||||
void on_cmbLanguage_currentIndexChanged(const QString &arg1);
|
||||
|
||||
void on_btnUpdateStyle_clicked();
|
||||
|
||||
private:
|
||||
Ui::DialogSettings *ui;
|
||||
QTranslator qtLanguageTranslator;
|
||||
};
|
||||
|
||||
#endif // DIALOGSETTINGS_H
|
||||
Reference in New Issue
Block a user