LimeReport/designer/designersettingmanager.h
2019-07-09 12:35:36 +03:00

24 lines
585 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();
public slots:
void getAvailableLanguages(QList<QLocale::Language>* languages);
QLocale::Language getCurrentDefaultLanguage();
void currentDefaultLanguageChanged(QLocale::Language language);
private:
QSettings* m_setting;
};
#endif // DESIGNERSETTINGMANAGER_H