mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Fix warning about QSettings: now QSettings use native format for windows osx and other unix. See Qt documentation for more information.
http://doc.qt.io/qt-5/qsettings.html#details git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4206 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include <math.h>
|
||||
#include "diagramschooser.h"
|
||||
#include "exportproperties.h"
|
||||
#include "qetapp.h"
|
||||
#include "qeticons.h"
|
||||
#include "qetmessagebox.h"
|
||||
|
||||
@@ -536,8 +535,9 @@ void DiagramPrintDialog::saveReloadDiagramParameters(Diagram *diagram, const Exp
|
||||
configuration. Key/values pairs are associated to the printer for which
|
||||
they have been set.
|
||||
*/
|
||||
void DiagramPrintDialog::savePageSetupForCurrentPrinter() {
|
||||
QSettings &settings = QETApp::settings();
|
||||
void DiagramPrintDialog::savePageSetupForCurrentPrinter()
|
||||
{
|
||||
QSettings settings;
|
||||
QString printer_section = settingsSectionName(printer_);
|
||||
|
||||
while (!settings.group().isEmpty()) settings.endGroup();
|
||||
@@ -571,8 +571,9 @@ void DiagramPrintDialog::savePageSetupForCurrentPrinter() {
|
||||
Load parameters previously set in the "page setup" dialog for the current
|
||||
printer, if any.
|
||||
*/
|
||||
void DiagramPrintDialog::loadPageSetupForCurrentPrinter() {
|
||||
QSettings &settings = QETApp::settings();
|
||||
void DiagramPrintDialog::loadPageSetupForCurrentPrinter()
|
||||
{
|
||||
QSettings settings;
|
||||
QString printer_section = settingsSectionName(printer_);
|
||||
|
||||
while (!settings.group().isEmpty()) settings.endGroup();
|
||||
|
||||
Reference in New Issue
Block a user