Atlas-Launcher/source/utils/qt/fileOpenMode.hpp

11 lines
260 B
C++

#pragma once
#include <QIODevice>
/**
* convert a string representing a file mode to the corresponding Qt flags.
* @param modeString the mode as a string
* @return the mode as a flag
*/
QIODevice::OpenMode fileModeFromString(const QString& modeString);