Improve file access on windows and mac OSX

This commit is contained in:
joshua
2020-01-09 10:26:10 +01:00
parent 3492540d53
commit 3d051419a5
5 changed files with 63 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
Copyright 2006-2019 The QElectroTech Team
This file is part of QElectroTech.
@@ -24,6 +24,10 @@
#include <QString>
#include <QIcon>
#ifndef Q_OS_LINUX
#include "sstream"
#endif
class QETProject;
class XmlElementCollection;
@@ -86,13 +90,18 @@ class ElementsLocation
QString m_collection_path;
QString m_file_system_path;
QETProject *m_project = nullptr;
#ifndef Q_OS_LINUX
mutable std::stringstream m_string_stream;
#endif
public:
static int MetaTypeId; ///< Id of the corresponding Qt meta type
static void clearAcces();
static int accesCount();
};
QDebug operator<<(QDebug debug, const ElementsLocation &location);
Q_DECLARE_METATYPE(ElementsLocation)
uint qHash(const ElementsLocation &);
//uint qHash(const ElementsLocation &);
#endif