From 63022d08ea8f9f04a75d301602e639b83b1b7396 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 2 Nov 2022 13:58:34 +0100 Subject: 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 Reviewed-by: Reviewed-by: Qt CI Bot --- .../commands/statepreviewimagechangedcommand.cpp | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp (limited to 'share/qtcreator/qml/qmlpuppet/commands/statepreviewimagechangedcommand.cpp') 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 - -#include - -namespace QmlDesigner { - -StatePreviewImageChangedCommand::StatePreviewImageChangedCommand() = default; - -StatePreviewImageChangedCommand::StatePreviewImageChangedCommand(const QVector &imageVector) - : m_previewVector(imageVector) -{ -} - -QVector 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 -- cgit v1.2.1