summaryrefslogtreecommitdiff
path: root/share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-12-11 21:29:10 +0200
committerMahmoud Badri <mahmoud.badri@qt.io>2019-12-13 12:40:43 +0000
commitf97de35dd4af80fa5f3d4229ac4aa8519d9e1d38 (patch)
treeebc8244942f8014726a7166464f3cc8153d6de21 /share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h
parentc2bfdff70b4d539e719d7eb78a59ed4214b683f4 (diff)
downloadqt-creator-a013502318cefbcc3b60eee9f50e179e3d986e2d.tar.gz
Improve edit view 3D "on top" logicqds/v1.4.0-rc1
- Proxy dialog removed - When the QDS window is minimized/maximized, the edit view 3D follows. The opposite is not true (edit view 3D can be minimized separately). - Edit view 3D is always on top of QDS window. Only exception is when a popup is shown (so that the user can handle the popup). - External apps go normally on top of the edit view 3D. Known (non critical) issues: - Activating the edit view 3D doesn't raise() the QDS window, so if an external app is on top of the edit view 3D then the view is clicked, the external app will be in between the view and the QDS window. - Closing the edit view 3D from the x button doesnt work (causes a restart). This is not in the scope of this commit. Task-number: QDS-1179 Change-Id: I1dd72590037be295b94735de96772307ba14c59c Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h')
-rw-r--r--share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h b/share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h
new file mode 100644
index 0000000000..cd9529fbb5
--- /dev/null
+++ b/share/qtcreator/qml/qmlpuppet/commands/enable3dviewcommand.h
@@ -0,0 +1,54 @@
+/****************************************************************************
+**
+** Copyright (C) 2019 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+****************************************************************************/
+
+#pragma once
+
+#include <QMetaType>
+
+namespace QmlDesigner {
+
+class Enable3DViewCommand
+{
+ friend QDataStream &operator>>(QDataStream &in, Enable3DViewCommand &command);
+ friend QDebug operator<<(QDebug debug, const Enable3DViewCommand &command);
+
+public:
+ explicit Enable3DViewCommand(bool enable);
+ Enable3DViewCommand() = default;
+
+ bool isEnable() const;
+
+private:
+ bool m_enable = true;
+};
+
+QDataStream &operator<<(QDataStream &out, const Enable3DViewCommand &command);
+QDataStream &operator>>(QDataStream &in, Enable3DViewCommand &command);
+
+QDebug operator<<(QDebug debug, const Enable3DViewCommand &command);
+
+} // namespace QmlDesigner
+
+Q_DECLARE_METATYPE(QmlDesigner::Enable3DViewCommand)