diff options
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/commands/changefileurlcommand.h')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/commands/changefileurlcommand.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/changefileurlcommand.h b/share/qtcreator/qml/qmlpuppet/commands/changefileurlcommand.h index 5645274fc4..bc73f40807 100644 --- a/share/qtcreator/qml/qmlpuppet/commands/changefileurlcommand.h +++ b/share/qtcreator/qml/qmlpuppet/commands/changefileurlcommand.h @@ -26,28 +26,30 @@ #pragma once #include <qmetatype.h> +#include <QDataStream> #include <QUrl> namespace QmlDesigner { class ChangeFileUrlCommand { - friend QDataStream &operator>>(QDataStream &in, ChangeFileUrlCommand &command); public: - ChangeFileUrlCommand(); - explicit ChangeFileUrlCommand(const QUrl &fileUrl); + friend QDataStream &operator>>(QDataStream &in, ChangeFileUrlCommand &command) + { + in >> command.fileUrl; + return in; + } - QUrl fileUrl() const; - -private: - QUrl m_fileUrl; -}; + friend QDataStream &operator<<(QDataStream &out, const ChangeFileUrlCommand &command) + { + out << command.fileUrl; + return out; + } + friend QDebug operator <<(QDebug debug, const ChangeFileUrlCommand &command); -QDataStream &operator<<(QDataStream &out, const ChangeFileUrlCommand &command); -QDataStream &operator>>(QDataStream &in, ChangeFileUrlCommand &command); - -QDebug operator <<(QDebug debug, const ChangeFileUrlCommand &command); + QUrl fileUrl; +}; } // namespace QmlDesigner |