0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-26 01:24:39 +03:00
LimeReport/designer/designersettingmanager.h
2018-05-24 14:31:10 +03:00

26 lines
667 B
C++

#ifndef DESIGNERSETTINGMANAGER_H
#define DESIGNERSETTINGMANAGER_H
#include <QObject>
#include <QLocale>
#include <QApplication>
#include <QSettings>
class DesignerSettingManager : public QObject
{
Q_OBJECT
public:
explicit DesignerSettingManager(QObject *parent = 0);
~DesignerSettingManager();
void setApplicationInstance(QApplication* application);
public slots:
void getAviableLanguages(QList<QLocale::Language>* languages);
QLocale::Language getCurrentDefaultLanguage();
void currentDefaulLanguageChanged(QLocale::Language language);
private:
QApplication* m_app;
QSettings* m_setting;
};
#endif // DESIGNERSETTINGMANAGER_H