0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

All settings are merged in one place

This commit is contained in:
Arin Alexander
2019-01-29 23:18:24 +03:00
parent 91a1798bf0
commit b81de4680c
15 changed files with 393 additions and 333 deletions

View File

@@ -84,7 +84,8 @@ public:
Translations,
TabTypeCount
};
ReportDesignWidget(ReportEnginePrivateInterface* report, QMainWindow *mainWindow, QWidget *parent = 0);
ReportDesignWidget(ReportEnginePrivateInterface* report, QSettings* settings,
QMainWindow *mainWindow, QWidget *parent = 0);
~ReportDesignWidget();
void createStartPage();
void clear();
@@ -112,7 +113,7 @@ public:
bool emitSaveReportAs();
bool emitLoadReport();
void saveState(QSettings *settings);
void loadState(QSettings *settings);
void loadState();
void applySettings();
void applyUseGrid();
bool useGrid(){ return m_useGrid;}
@@ -227,6 +228,7 @@ private:
bool m_useMagnet;
bool m_dialogChanged;
bool m_useDarkTheme;
QSettings* m_settings;
};
} // namespace LimeReport