Provide interface for serialization to string type

PR #16685.
This commit is contained in:
Chocobo1
2022-03-23 12:55:41 +08:00
committed by GitHub
parent b7c098c5e6
commit 6c10aa33e1
5 changed files with 62 additions and 13 deletions

View File

@@ -35,7 +35,9 @@
#include "pathfwd.h"
class Path final
#include "base/interfaces/istringable.h"
class Path final : public IStringable
{
public:
Path() = default;
@@ -64,7 +66,7 @@ public:
Path relativePathOf(const Path &childPath) const;
QString data() const;
QString toString() const;
QString toString() const override;
Path &operator/=(const Path &other);
Path &operator+=(const QString &str);