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:
blacksun
2015-09-16 15:11:13 +00:00
parent 3e1c6b8f56
commit 1a7e3ac8e1
22 changed files with 197 additions and 140 deletions

View File

@@ -179,7 +179,8 @@ QETProject::~QETProject() {
bool QETProject::integrateElementToProject(const ElementsLocation &location, const QETProject *project)
{
//Integration element must be enable
bool auto_integration_enabled = QETApp::settings().value("diagrameditor/integrate-elements", true).toBool();
QSettings settings;
bool auto_integration_enabled = settings.value("diagrameditor/integrate-elements", true).toBool();
//the element belongs there a project and if so, is this another project of the project given by parameter?
bool elmt_from_project = location.project();