mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Improve file access on windows and mac OSX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user