forked from Ivasoft/DSView
update: rename namespace
This commit is contained in:
@@ -28,8 +28,9 @@
|
||||
#include <QTextCodec>
|
||||
#endif
|
||||
|
||||
namespace pv::encoding
|
||||
{
|
||||
namespace pv{
|
||||
namespace encoding{
|
||||
|
||||
void set_utf8(QTextStream &stream)
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
@@ -39,4 +40,5 @@ namespace pv::encoding
|
||||
stream.setCodec(code);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,9 +24,11 @@
|
||||
|
||||
class QTextStream;
|
||||
|
||||
namespace pv::encoding
|
||||
{
|
||||
namespace pv{
|
||||
namespace encoding{
|
||||
|
||||
void set_utf8(QTextStream &stream);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -21,8 +21,9 @@
|
||||
|
||||
#include "path.h"
|
||||
|
||||
namespace pv::path
|
||||
{
|
||||
namespace pv{
|
||||
namespace path{
|
||||
|
||||
std::string ConvertPath(QString fileName)
|
||||
{
|
||||
return fileName.toUtf8().toStdString();
|
||||
@@ -37,4 +38,5 @@ namespace pv::path
|
||||
}
|
||||
return path;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,11 +25,12 @@
|
||||
#include <string>
|
||||
#include <QString>
|
||||
|
||||
namespace pv::path
|
||||
{
|
||||
namespace pv{
|
||||
namespace path{
|
||||
std::string ConvertPath(QString fileName);
|
||||
|
||||
QString GetDirectoryName(QString path);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user