mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-28 23:00:53 +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:
@@ -16,7 +16,7 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "conductorproperties.h"
|
||||
#include "qetapp.h"
|
||||
#include <QPainter>
|
||||
|
||||
/**
|
||||
Constructeur par defaut
|
||||
@@ -365,8 +365,9 @@ QString ConductorProperties::typeToString(ConductorType t) {
|
||||
* @brief ConductorProperties::defaultProperties
|
||||
* @return the default properties stored in the setting file
|
||||
*/
|
||||
ConductorProperties ConductorProperties::defaultProperties() {
|
||||
QSettings &settings = QETApp::settings();
|
||||
ConductorProperties ConductorProperties::defaultProperties()
|
||||
{
|
||||
QSettings settings;
|
||||
|
||||
ConductorProperties def;
|
||||
def.fromSettings(settings, "diagrameditor/defaultconductor");
|
||||
|
||||
Reference in New Issue
Block a user