summaryrefslogtreecommitdiff
path: root/src/libs/qmlpuppetcommunication/commands/changepreviewimagesizecommand.cpp
blob: 884d90de0d1f5126ad017d890eabdc651156f252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "changepreviewimagesizecommand.h"

#include <QDebug>

namespace QmlDesigner {

QDataStream &operator<<(QDataStream &out, const ChangePreviewImageSizeCommand &command)
{
    return out << command.size;
}

QDataStream &operator>>(QDataStream &in, ChangePreviewImageSizeCommand &command)
{
    return in >> command.size;
}

QDebug operator<<(QDebug debug, const ChangePreviewImageSizeCommand &command)
{
    return debug.nospace() << "ChangePreviewImageSizeCommand(" << command.size << ")";
}

} // namespace QmlDesigner