diff options
author | Marco Bubke <marco.bubke@qt.io> | 2022-11-02 13:58:34 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2022-11-09 12:29:38 +0000 |
commit | 63022d08ea8f9f04a75d301602e639b83b1b7396 (patch) | |
tree | 99fbbfeafcb1ad0b4600f5d63b8071678894e8a5 /share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp | |
parent | ac526d326cab6f19955cec4e19c73bc309bd96c8 (diff) | |
download | qt-creator-63022d08ea8f9f04a75d301602e639b83b1b7396.tar.gz |
QmlDesigner: QmlPuppet as standalone tool
The qmlpuppet is now a standalone tool. There is new a library too with
the communication code. That is shared between the designer and the
puppet. It's in a .cmake file so it can be included by the standalone
tool if it is not part of a designer build.
Task-number: QDS-5879
Change-Id: I2bc2a0b463fbb3e0c8c23d182abfd368cf87e968
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp b/share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp deleted file mode 100644 index 1f7e628613..0000000000 --- a/share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0 WITH Qt-GPL-exception-1.0 - -#include "statepreviewimagechangedcommand.h" - -#include <QDebug> - -#include <algorithm> - -namespace QmlDesigner { - -StatePreviewImageChangedCommand::StatePreviewImageChangedCommand() = default; - -StatePreviewImageChangedCommand::StatePreviewImageChangedCommand(const QVector<ImageContainer> &imageVector) - : m_previewVector(imageVector) -{ -} - -QVector<ImageContainer> StatePreviewImageChangedCommand::previews()const -{ - return m_previewVector; -} - -void StatePreviewImageChangedCommand::sort() -{ - std::sort(m_previewVector.begin(), m_previewVector.end()); -} - -QDataStream &operator<<(QDataStream &out, const StatePreviewImageChangedCommand &command) -{ - out << command.previews(); - - return out; -} - -QDataStream &operator>>(QDataStream &in, StatePreviewImageChangedCommand &command) -{ - in >> command.m_previewVector; - - return in; -} - -bool operator ==(const StatePreviewImageChangedCommand &first, const StatePreviewImageChangedCommand &second) -{ - return first.m_previewVector == second.m_previewVector; -} - -QDebug operator <<(QDebug debug, const StatePreviewImageChangedCommand &command) -{ - return debug.nospace() << "StatePreviewImageChangedCommand(" << command.previews() << ")"; - -} - -} // namespace QmlDesigner |