diff options
author | Marco Bubke <marco.bubke@qt.io> | 2022-09-15 11:33:28 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2022-09-22 19:06:21 +0000 |
commit | 4bb4e07ad8419ba4edc1d9cb543ab8a0ddb1d07d (patch) | |
tree | bac1c69ab091a2f755f666cbd7461b134b710588 /share/qtcreator/qml/qmlpuppet/commands/synchronizecommand.cpp | |
parent | 1518a74dffe05fcba02d541509b668bac252c764 (diff) | |
download | qt-creator-4bb4e07ad8419ba4edc1d9cb543ab8a0ddb1d07d.tar.gz |
QmlDesigner: Inline SynchronizeCommand
Change-Id: Id030fb6aba7f1ba61ce97ebebb5e91a809ab6d8d
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/commands/synchronizecommand.cpp')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/commands/synchronizecommand.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/synchronizecommand.cpp b/share/qtcreator/qml/qmlpuppet/commands/synchronizecommand.cpp deleted file mode 100644 index 7cc2a7edcb..0000000000 --- a/share/qtcreator/qml/qmlpuppet/commands/synchronizecommand.cpp +++ /dev/null @@ -1,50 +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 "synchronizecommand.h" - -#include <QDebug> - -namespace QmlDesigner { - -SynchronizeCommand::SynchronizeCommand() - : m_synchronizeId(-1) -{ -} - -SynchronizeCommand::SynchronizeCommand(int synchronizeId) - : m_synchronizeId (synchronizeId) -{ -} - -int SynchronizeCommand::synchronizeId() const -{ - return m_synchronizeId; -} - - -QDataStream &operator<<(QDataStream &out, const SynchronizeCommand &command) -{ - out << command.synchronizeId(); - - return out; -} - -QDataStream &operator>>(QDataStream &in, SynchronizeCommand &command) -{ - in >> command.m_synchronizeId; - - return in; -} - -bool operator ==(const SynchronizeCommand &first, const SynchronizeCommand &second) -{ - return first.m_synchronizeId == second.m_synchronizeId; -} - -QDebug operator <<(QDebug debug, const SynchronizeCommand &command) -{ - return debug.nospace() << "SynchronizeCommand(synchronizeId: " << command.synchronizeId() << ")"; -} - -} // namespace QmlDesigner |