mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 12:34:39 +03:00
25 lines
645 B
C++
25 lines
645 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 getAvailableLanguages(QList<QLocale::Language>* languages);
|
|
QLocale::Language getCurrentDefaultLanguage();
|
|
void currentDefaultLanguageChanged(QLocale::Language language);
|
|
private:
|
|
QSettings* m_setting;
|
|
};
|
|
|
|
#endif // DESIGNERSETTINGMANAGER_H
|