forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.11'
Change-Id: Ieb0bb1ebab9a5efb42d15bbeac2cd4c46a6de962
This commit is contained in:
@@ -69,6 +69,7 @@ source_include_patterns = [
|
|||||||
r"^.*\.h$", # .h files in all directories that are looked into
|
r"^.*\.h$", # .h files in all directories that are looked into
|
||||||
r"^.*\.hpp$", # .hpp files in all directories that are looked into
|
r"^.*\.hpp$", # .hpp files in all directories that are looked into
|
||||||
# qtdesignstudio docs are build against dev package, so we need to include some image directories
|
# qtdesignstudio docs are build against dev package, so we need to include some image directories
|
||||||
|
r"^share/qtcreator/qml/qmlpuppet/mockfiles/images/.*$",
|
||||||
r"^share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/images/.*$",
|
r"^share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/images/.*$",
|
||||||
r"^src/libs/qmleditorwidgets/images/.*$",
|
r"^src/libs/qmleditorwidgets/images/.*$",
|
||||||
r"^src/libs/utils/images/.*$",
|
r"^src/libs/utils/images/.*$",
|
||||||
@@ -79,10 +80,10 @@ source_include_patterns = [
|
|||||||
r"^src/plugins/qmldesigner/components/componentcore/images/.*$",
|
r"^src/plugins/qmldesigner/components/componentcore/images/.*$",
|
||||||
r"^src/plugins/qmldesigner/components/timelineeditor/images/.*$",
|
r"^src/plugins/qmldesigner/components/timelineeditor/images/.*$",
|
||||||
r"^src/plugins/qmldesigner/qmlpreviewplugin/images/.*$",
|
r"^src/plugins/qmldesigner/qmlpreviewplugin/images/.*$",
|
||||||
r"^src/plugins/texteditor/images/.*$"
|
r"^src/plugins/texteditor/images/.*$",
|
||||||
# also some single files
|
# also some single files
|
||||||
r"^src/plugins/qmldesigner/components/formeditor/.*\.png$",
|
r"^src/plugins/qmldesigner/components/formeditor/.*\.png$",
|
||||||
r"^src/plugins/qmldesigner/components/navigator/.*\.png$",
|
r"^src/plugins/qmldesigner/components/navigator/.*\.png$"
|
||||||
]
|
]
|
||||||
|
|
||||||
build_include_patterns = [
|
build_include_patterns = [
|
||||||
|
|||||||
@@ -634,6 +634,15 @@ def qdumpHelper_std__string(d, value, charType, format):
|
|||||||
qdumpHelper__std__string__MSVC(d, value, charType, format)
|
qdumpHelper__std__string__MSVC(d, value, charType, format)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# GCC 9, QTCREATORBUG-22753
|
||||||
|
try:
|
||||||
|
data = value["_M_dataplus"]["_M_p"].pointer()
|
||||||
|
size = int(value["_M_string_length"])
|
||||||
|
d.putCharArrayHelper(data, size, charType, format)
|
||||||
|
return
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
data = value.extractPointer()
|
data = value.extractPointer()
|
||||||
# We can't lookup the std::string::_Rep type without crashing LLDB,
|
# We can't lookup the std::string::_Rep type without crashing LLDB,
|
||||||
# so hard-code assumption on member position
|
# so hard-code assumption on member position
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ HEADERS += $$PWD/changeselectioncommand.h
|
|||||||
HEADERS += $$PWD/drop3dlibraryitemcommand.h
|
HEADERS += $$PWD/drop3dlibraryitemcommand.h
|
||||||
HEADERS += $$PWD/update3dviewstatecommand.h
|
HEADERS += $$PWD/update3dviewstatecommand.h
|
||||||
HEADERS += $$PWD/enable3dviewcommand.h
|
HEADERS += $$PWD/enable3dviewcommand.h
|
||||||
|
HEADERS += $$PWD/view3dclosedcommand.h
|
||||||
|
|
||||||
SOURCES += $$PWD/synchronizecommand.cpp
|
SOURCES += $$PWD/synchronizecommand.cpp
|
||||||
SOURCES += $$PWD/debugoutputcommand.cpp
|
SOURCES += $$PWD/debugoutputcommand.cpp
|
||||||
@@ -61,3 +62,4 @@ SOURCES += $$PWD/changeselectioncommand.cpp
|
|||||||
SOURCES += $$PWD/drop3dlibraryitemcommand.cpp
|
SOURCES += $$PWD/drop3dlibraryitemcommand.cpp
|
||||||
SOURCES += $$PWD/update3dviewstatecommand.cpp
|
SOURCES += $$PWD/update3dviewstatecommand.cpp
|
||||||
SOURCES += $$PWD/enable3dviewcommand.cpp
|
SOURCES += $$PWD/enable3dviewcommand.cpp
|
||||||
|
SOURCES += $$PWD/view3dclosedcommand.cpp
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
**
|
||||||
|
** Copyright (C) 2016 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.
|
||||||
|
**
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include "view3dclosedcommand.h"
|
||||||
|
|
||||||
|
namespace QmlDesigner {
|
||||||
|
|
||||||
|
View3DClosedCommand::View3DClosedCommand() = default;
|
||||||
|
|
||||||
|
QDataStream &operator<<(QDataStream &out, const View3DClosedCommand &/*command*/)
|
||||||
|
{
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDataStream &operator>>(QDataStream &in, View3DClosedCommand &/*command*/)
|
||||||
|
{
|
||||||
|
return in;
|
||||||
|
}
|
||||||
|
|
||||||
|
QDebug operator<<(QDebug debug, const View3DClosedCommand &/*command*/)
|
||||||
|
{
|
||||||
|
return debug.nospace() << "View3DClosedCommand()";
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace QmlDesigner
|
||||||
47
share/qtcreator/qml/qmlpuppet/commands/view3dclosedcommand.h
Normal file
47
share/qtcreator/qml/qmlpuppet/commands/view3dclosedcommand.h
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
/****************************************************************************
|
||||||
|
**
|
||||||
|
** Copyright (C) 2016 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.h>
|
||||||
|
#include <QDataStream>
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
namespace QmlDesigner {
|
||||||
|
|
||||||
|
class View3DClosedCommand
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
View3DClosedCommand();
|
||||||
|
};
|
||||||
|
|
||||||
|
QDataStream &operator<<(QDataStream &out, const View3DClosedCommand &command);
|
||||||
|
QDataStream &operator>>(QDataStream &in, View3DClosedCommand &command);
|
||||||
|
|
||||||
|
QDebug operator<<(QDebug debug, const View3DClosedCommand &command);
|
||||||
|
|
||||||
|
} // namespace QmlDesigner
|
||||||
|
|
||||||
|
Q_DECLARE_METATYPE(QmlDesigner::View3DClosedCommand)
|
||||||
@@ -71,6 +71,7 @@
|
|||||||
#include "puppetalivecommand.h"
|
#include "puppetalivecommand.h"
|
||||||
#include "changeselectioncommand.h"
|
#include "changeselectioncommand.h"
|
||||||
#include "drop3dlibraryitemcommand.h"
|
#include "drop3dlibraryitemcommand.h"
|
||||||
|
#include "view3dclosedcommand.h"
|
||||||
|
|
||||||
namespace QmlDesigner {
|
namespace QmlDesigner {
|
||||||
|
|
||||||
@@ -261,6 +262,11 @@ void NodeInstanceClientProxy::library3DItemDropped(const Drop3DLibraryItemComman
|
|||||||
writeCommand(QVariant::fromValue(command));
|
writeCommand(QVariant::fromValue(command));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NodeInstanceClientProxy::view3DClosed(const View3DClosedCommand &command)
|
||||||
|
{
|
||||||
|
writeCommand(QVariant::fromValue(command));
|
||||||
|
}
|
||||||
|
|
||||||
void NodeInstanceClientProxy::flush()
|
void NodeInstanceClientProxy::flush()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ class ChangeNodeSourceCommand;
|
|||||||
class EndPuppetCommand;
|
class EndPuppetCommand;
|
||||||
class ChangeSelectionCommand;
|
class ChangeSelectionCommand;
|
||||||
class Drop3DLibraryItemCommand;
|
class Drop3DLibraryItemCommand;
|
||||||
|
class View3DClosedCommand;
|
||||||
|
|
||||||
class NodeInstanceClientProxy : public QObject, public NodeInstanceClientInterface
|
class NodeInstanceClientProxy : public QObject, public NodeInstanceClientInterface
|
||||||
{
|
{
|
||||||
@@ -80,6 +81,7 @@ public:
|
|||||||
void puppetAlive(const PuppetAliveCommand &command);
|
void puppetAlive(const PuppetAliveCommand &command);
|
||||||
void selectionChanged(const ChangeSelectionCommand &command) override;
|
void selectionChanged(const ChangeSelectionCommand &command) override;
|
||||||
void library3DItemDropped(const Drop3DLibraryItemCommand &command) override;
|
void library3DItemDropped(const Drop3DLibraryItemCommand &command) override;
|
||||||
|
void view3DClosed(const View3DClosedCommand &command) override;
|
||||||
|
|
||||||
void flush() override;
|
void flush() override;
|
||||||
void synchronizeWithClientProcess() override;
|
void synchronizeWithClientProcess() override;
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class DebugOutputCommand;
|
|||||||
class PuppetAliveCommand;
|
class PuppetAliveCommand;
|
||||||
class ChangeSelectionCommand;
|
class ChangeSelectionCommand;
|
||||||
class Drop3DLibraryItemCommand;
|
class Drop3DLibraryItemCommand;
|
||||||
|
class View3DClosedCommand;
|
||||||
|
|
||||||
class NodeInstanceClientInterface
|
class NodeInstanceClientInterface
|
||||||
{
|
{
|
||||||
@@ -57,6 +58,7 @@ public:
|
|||||||
virtual void debugOutput(const DebugOutputCommand &command) = 0;
|
virtual void debugOutput(const DebugOutputCommand &command) = 0;
|
||||||
virtual void selectionChanged(const ChangeSelectionCommand &command) = 0;
|
virtual void selectionChanged(const ChangeSelectionCommand &command) = 0;
|
||||||
virtual void library3DItemDropped(const Drop3DLibraryItemCommand &command) = 0;
|
virtual void library3DItemDropped(const Drop3DLibraryItemCommand &command) = 0;
|
||||||
|
virtual void view3DClosed(const View3DClosedCommand &command) = 0;
|
||||||
|
|
||||||
virtual void flush() {}
|
virtual void flush() {}
|
||||||
virtual void synchronizeWithClientProcess() {}
|
virtual void synchronizeWithClientProcess() {}
|
||||||
|
|||||||
@@ -63,12 +63,13 @@
|
|||||||
#include "endpuppetcommand.h"
|
#include "endpuppetcommand.h"
|
||||||
#include "debugoutputcommand.h"
|
#include "debugoutputcommand.h"
|
||||||
#include "puppetalivecommand.h"
|
#include "puppetalivecommand.h"
|
||||||
|
#include "view3dclosedcommand.h"
|
||||||
|
|
||||||
#include <enumeration.h>
|
#include <enumeration.h>
|
||||||
|
|
||||||
namespace QmlDesigner {
|
namespace QmlDesigner {
|
||||||
|
|
||||||
static bool isRegistered=false;
|
static bool isRegistered = false;
|
||||||
|
|
||||||
NodeInstanceServerInterface::NodeInstanceServerInterface(QObject *parent) :
|
NodeInstanceServerInterface::NodeInstanceServerInterface(QObject *parent) :
|
||||||
QObject(parent)
|
QObject(parent)
|
||||||
@@ -205,6 +206,9 @@ void NodeInstanceServerInterface::registerCommands()
|
|||||||
|
|
||||||
qRegisterMetaType<PuppetAliveCommand>("PuppetAliveCommand");
|
qRegisterMetaType<PuppetAliveCommand>("PuppetAliveCommand");
|
||||||
qRegisterMetaTypeStreamOperators<PuppetAliveCommand>("PuppetAliveCommand");
|
qRegisterMetaTypeStreamOperators<PuppetAliveCommand>("PuppetAliveCommand");
|
||||||
|
|
||||||
|
qRegisterMetaType<View3DClosedCommand>("View3DClosedCommand");
|
||||||
|
qRegisterMetaTypeStreamOperators<View3DClosedCommand>("View3DClosedCommand");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -571,11 +571,30 @@ QVariant ObjectNodeInstance::property(const PropertyName &name) const
|
|||||||
return property.read();
|
return property.read();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ObjectNodeInstance::ensureVector3DDotProperties(PropertyNameList &list) const
|
||||||
|
{
|
||||||
|
const PropertyNameList properties = { "rotation", "scale", "pivot" };
|
||||||
|
for (const auto &property : properties) {
|
||||||
|
if (list.contains(property) && instanceType(property) == "QVector3D") {
|
||||||
|
const PropertyNameList dotProperties = { "x", "y", "z" };
|
||||||
|
for (const auto &dotProperty : dotProperties) {
|
||||||
|
const PropertyName dotPropertyName = property + "." + dotProperty;
|
||||||
|
if (!list.contains(dotPropertyName))
|
||||||
|
list.append(dotPropertyName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PropertyNameList ObjectNodeInstance::propertyNames() const
|
PropertyNameList ObjectNodeInstance::propertyNames() const
|
||||||
{
|
{
|
||||||
|
PropertyNameList list;
|
||||||
if (isValid())
|
if (isValid())
|
||||||
return QmlPrivateGate::allPropertyNames(object());
|
list = QmlPrivateGate::allPropertyNames(object());
|
||||||
return PropertyNameList();
|
|
||||||
|
ensureVector3DDotProperties(list);
|
||||||
|
|
||||||
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString ObjectNodeInstance::instanceType(const PropertyName &name) const
|
QString ObjectNodeInstance::instanceType(const PropertyName &name) const
|
||||||
|
|||||||
@@ -209,6 +209,7 @@ protected:
|
|||||||
static QVariant enumationValue(const Enumeration &enumeration);
|
static QVariant enumationValue(const Enumeration &enumeration);
|
||||||
|
|
||||||
void initializePropertyWatcher(const ObjectNodeInstance::Pointer &objectNodeInstance);
|
void initializePropertyWatcher(const ObjectNodeInstance::Pointer &objectNodeInstance);
|
||||||
|
void ensureVector3DDotProperties(PropertyNameList &list) const;
|
||||||
private:
|
private:
|
||||||
QString m_id;
|
QString m_id;
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,7 @@
|
|||||||
#include "removesharedmemorycommand.h"
|
#include "removesharedmemorycommand.h"
|
||||||
#include "objectnodeinstance.h"
|
#include "objectnodeinstance.h"
|
||||||
#include "drop3dlibraryitemcommand.h"
|
#include "drop3dlibraryitemcommand.h"
|
||||||
|
#include "view3dclosedcommand.h"
|
||||||
|
|
||||||
#include "dummycontextobject.h"
|
#include "dummycontextobject.h"
|
||||||
#include "../editor3d/generalhelper.h"
|
#include "../editor3d/generalhelper.h"
|
||||||
@@ -97,6 +98,10 @@ bool Qt5InformationNodeInstanceServer::eventFilter(QObject *, QEvent *event)
|
|||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case QEvent::Close: {
|
||||||
|
nodeInstanceClient()->view3DClosed(View3DClosedCommand());
|
||||||
|
} break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ public:
|
|||||||
sizePolicy.setHeightForWidth(pixmapLabel->sizePolicy().hasHeightForWidth());
|
sizePolicy.setHeightForWidth(pixmapLabel->sizePolicy().hasHeightForWidth());
|
||||||
pixmapLabel->setSizePolicy(sizePolicy);
|
pixmapLabel->setSizePolicy(sizePolicy);
|
||||||
pixmapLabel->setVisible(false);
|
pixmapLabel->setVisible(false);
|
||||||
|
pixmapLabel->setFocusPolicy(Qt::NoFocus);
|
||||||
|
|
||||||
auto pixmapSpacer =
|
auto pixmapSpacer =
|
||||||
new QSpacerItem(0, 5, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
|
new QSpacerItem(0, 5, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
|
||||||
@@ -71,6 +72,7 @@ public:
|
|||||||
messageLabel->setWordWrap(true);
|
messageLabel->setWordWrap(true);
|
||||||
messageLabel->setOpenExternalLinks(true);
|
messageLabel->setOpenExternalLinks(true);
|
||||||
messageLabel->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse);
|
messageLabel->setTextInteractionFlags(Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse);
|
||||||
|
messageLabel->setFocusPolicy(Qt::NoFocus);
|
||||||
|
|
||||||
auto checkBoxRightSpacer =
|
auto checkBoxRightSpacer =
|
||||||
new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||||
|
|||||||
@@ -371,15 +371,20 @@ void FancyLineEdit::onEditingFinished()
|
|||||||
|
|
||||||
void FancyLineEdit::keyPressEvent(QKeyEvent *event)
|
void FancyLineEdit::keyPressEvent(QKeyEvent *event)
|
||||||
{
|
{
|
||||||
const QTextCursor::MoveMode mode = (event->modifiers() & Qt::ShiftModifier)
|
if (camelCaseNavigation) {
|
||||||
? QTextCursor::KeepAnchor : QTextCursor::MoveAnchor;
|
if (event == QKeySequence::MoveToPreviousWord)
|
||||||
|
CamelCaseCursor::left(this, QTextCursor::MoveAnchor);
|
||||||
if (camelCaseNavigation && event == QKeySequence::MoveToPreviousWord)
|
else if (event == QKeySequence::SelectPreviousWord)
|
||||||
CamelCaseCursor::left(this, mode);
|
CamelCaseCursor::left(this, QTextCursor::KeepAnchor);
|
||||||
else if (camelCaseNavigation && event == QKeySequence::MoveToNextWord)
|
else if (event == QKeySequence::MoveToNextWord)
|
||||||
CamelCaseCursor::right(this, mode);
|
CamelCaseCursor::right(this, QTextCursor::MoveAnchor);
|
||||||
|
else if (event == QKeySequence::SelectNextWord)
|
||||||
|
CamelCaseCursor::right(this, QTextCursor::KeepAnchor);
|
||||||
else
|
else
|
||||||
QLineEdit::keyPressEvent(event);
|
QLineEdit::keyPressEvent(event);
|
||||||
|
} else {
|
||||||
|
QLineEdit::keyPressEvent(event);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FancyLineEdit::setCamelCaseNavigationEnabled(bool enabled)
|
void FancyLineEdit::setCamelCaseNavigationEnabled(bool enabled)
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
#include <projectexplorer/projectnodes.h>
|
#include <projectexplorer/projectnodes.h>
|
||||||
|
#include <projectexplorer/runconfiguration.h>
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
#include <projectexplorer/toolchain.h>
|
#include <projectexplorer/toolchain.h>
|
||||||
|
|
||||||
|
|||||||
@@ -27,13 +27,11 @@
|
|||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer { class Project; }
|
||||||
class Project;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Ui {
|
QT_BEGIN_NAMESPACE
|
||||||
class ClangIndexingProjectSettingsWidget;
|
namespace Ui { class ClangIndexingProjectSettingsWidget; }
|
||||||
}
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace ClangPchManager {
|
namespace ClangPchManager {
|
||||||
|
|
||||||
|
|||||||
@@ -1695,21 +1695,25 @@ bool WatchModel::contextMenuEvent(const ItemViewEvent &ev)
|
|||||||
|
|
||||||
addAction(menu, tr("Expand All Children"),
|
addAction(menu, tr("Expand All Children"),
|
||||||
item,
|
item,
|
||||||
[this, item] {
|
[this, name = item->iname] {
|
||||||
m_expandedINames.insert(item->iname);
|
m_expandedINames.insert(name);
|
||||||
|
if (auto item = findItem(name)) {
|
||||||
item->forFirstLevelChildren([this](WatchItem *child) {
|
item->forFirstLevelChildren([this](WatchItem *child) {
|
||||||
m_expandedINames.insert(child->iname);
|
m_expandedINames.insert(child->iname);
|
||||||
});
|
});
|
||||||
m_engine->updateLocals();
|
m_engine->updateLocals();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
addAction(menu, tr("Collapse All Children"),
|
addAction(menu, tr("Collapse All Children"),
|
||||||
item,
|
item,
|
||||||
[this, item] {
|
[this, name = item->iname] {
|
||||||
|
if (auto item = findItem(name)) {
|
||||||
item->forFirstLevelChildren([this](WatchItem *child) {
|
item->forFirstLevelChildren([this](WatchItem *child) {
|
||||||
m_expandedINames.remove(child->iname);
|
m_expandedINames.remove(child->iname);
|
||||||
});
|
});
|
||||||
m_engine->updateLocals();
|
m_engine->updateLocals();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
addAction(menu, tr("Close Editor Tooltips"),
|
addAction(menu, tr("Close Editor Tooltips"),
|
||||||
@@ -1722,7 +1726,10 @@ bool WatchModel::contextMenuEvent(const ItemViewEvent &ev)
|
|||||||
|
|
||||||
addAction(menu, tr("Copy Current Value to Clipboard"),
|
addAction(menu, tr("Copy Current Value to Clipboard"),
|
||||||
item,
|
item,
|
||||||
[item] { copyToClipboard(item->value); });
|
[this, name = item->iname] {
|
||||||
|
if (auto item = findItem(name))
|
||||||
|
copyToClipboard(item->value);
|
||||||
|
});
|
||||||
|
|
||||||
// addAction(menu, tr("Copy Selected Rows to Clipboard"),
|
// addAction(menu, tr("Copy Selected Rows to Clipboard"),
|
||||||
// selectionModel()->hasSelection(),
|
// selectionModel()->hasSelection(),
|
||||||
|
|||||||
@@ -1970,11 +1970,12 @@ InstallsList QmakeProFile::installsList(const QtSupport::ProFileReader *reader,
|
|||||||
if (itemList.isEmpty())
|
if (itemList.isEmpty())
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
const QString installPrefix
|
const QStringList installPrefixVars{"QT_INSTALL_PREFIX", "QT_INSTALL_EXAMPLES"};
|
||||||
= reader->propertyValue(QLatin1String("QT_INSTALL_PREFIX"));
|
QList<QPair<QString, QString>> installPrefixValues;
|
||||||
const QString devInstallPrefix
|
for (const QString &installPrefix : installPrefixVars) {
|
||||||
= reader->propertyValue(QLatin1String("QT_INSTALL_PREFIX/dev"));
|
installPrefixValues << qMakePair(reader->propertyValue(installPrefix),
|
||||||
bool fixInstallPrefix = (installPrefix != devInstallPrefix);
|
reader->propertyValue(installPrefix + "/dev"));
|
||||||
|
}
|
||||||
|
|
||||||
foreach (const QString &item, itemList) {
|
foreach (const QString &item, itemList) {
|
||||||
const QStringList config = reader->values(item + ".CONFIG");
|
const QStringList config = reader->values(item + ".CONFIG");
|
||||||
@@ -1993,13 +1994,18 @@ InstallsList QmakeProFile::installsList(const QtSupport::ProFileReader *reader,
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString itemPath = itemPaths.last();
|
QString itemPath = itemPaths.last();
|
||||||
if (fixInstallPrefix && itemPath.startsWith(installPrefix)) {
|
for (const auto &prefixValuePair : qAsConst(installPrefixValues)) {
|
||||||
|
if (prefixValuePair.first == prefixValuePair.second
|
||||||
|
|| !itemPath.startsWith(prefixValuePair.first)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// This is a hack for projects which install into $$[QT_INSTALL_*],
|
// This is a hack for projects which install into $$[QT_INSTALL_*],
|
||||||
// in particular Qt itself, examples being most relevant.
|
// in particular Qt itself, examples being most relevant.
|
||||||
// Projects which implement their own install path policy must
|
// Projects which implement their own install path policy must
|
||||||
// parametrize their INSTALLS themselves depending on the intended
|
// parametrize their INSTALLS themselves depending on the intended
|
||||||
// installation/deployment mode.
|
// installation/deployment mode.
|
||||||
itemPath.replace(0, installPrefix.length(), devInstallPrefix);
|
itemPath.replace(0, prefixValuePair.first.length(), prefixValuePair.second);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (item == QLatin1String("target")) {
|
if (item == QLatin1String("target")) {
|
||||||
if (active)
|
if (active)
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ extend_qtc_plugin(QmlDesigner
|
|||||||
drop3dlibraryitemcommand.cpp drop3dlibraryitemcommand.h
|
drop3dlibraryitemcommand.cpp drop3dlibraryitemcommand.h
|
||||||
update3dviewstatecommand.cpp update3dviewstatecommand.h
|
update3dviewstatecommand.cpp update3dviewstatecommand.h
|
||||||
enable3dviewcommand.cpp enable3dviewcommand.h
|
enable3dviewcommand.cpp enable3dviewcommand.h
|
||||||
|
view3dclosedcommand.cpp view3dclosedcommand.h
|
||||||
)
|
)
|
||||||
|
|
||||||
extend_qtc_plugin(QmlDesigner
|
extend_qtc_plugin(QmlDesigner
|
||||||
|
|||||||
@@ -462,6 +462,9 @@ void FormEditorView::auxiliaryDataChanged(const ModelNode &node, const PropertyN
|
|||||||
if (isInvisible)
|
if (isInvisible)
|
||||||
newNode.deselectNode();
|
newNode.deselectNode();
|
||||||
}
|
}
|
||||||
|
} else if (name == "3d-view") {
|
||||||
|
bool is3DEnabled = data.isNull() || data.toBool();
|
||||||
|
formEditorWidget()->option3DAction()->set3DEnabled(is3DEnabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ public:
|
|||||||
|
|
||||||
void selectionChanged(const ChangeSelectionCommand &command) override;
|
void selectionChanged(const ChangeSelectionCommand &command) override;
|
||||||
void library3DItemDropped(const Drop3DLibraryItemCommand &command) override;
|
void library3DItemDropped(const Drop3DLibraryItemCommand &command) override;
|
||||||
|
void view3DClosed(const View3DClosedCommand &command) override;
|
||||||
|
|
||||||
void selectedNodesChanged(const QList<ModelNode> &selectedNodeList,
|
void selectedNodesChanged(const QList<ModelNode> &selectedNodeList,
|
||||||
const QList<ModelNode> &lastSelectedNodeList) override;
|
const QList<ModelNode> &lastSelectedNodeList) override;
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include <changenodesourcecommand.h>
|
#include <changenodesourcecommand.h>
|
||||||
#include <changeselectioncommand.h>
|
#include <changeselectioncommand.h>
|
||||||
#include <drop3dlibraryitemcommand.h>
|
#include <drop3dlibraryitemcommand.h>
|
||||||
|
#include <view3dclosedcommand.h>
|
||||||
|
|
||||||
#include <informationchangedcommand.h>
|
#include <informationchangedcommand.h>
|
||||||
#include <pixmapchangedcommand.h>
|
#include <pixmapchangedcommand.h>
|
||||||
@@ -284,6 +285,7 @@ void NodeInstanceServerProxy::dispatchCommand(const QVariant &command, PuppetStr
|
|||||||
static const int puppetAliveCommandType = QMetaType::type("PuppetAliveCommand");
|
static const int puppetAliveCommandType = QMetaType::type("PuppetAliveCommand");
|
||||||
static const int changeSelectionCommandType = QMetaType::type("ChangeSelectionCommand");
|
static const int changeSelectionCommandType = QMetaType::type("ChangeSelectionCommand");
|
||||||
static const int drop3DLibraryItemCommandType = QMetaType::type("Drop3DLibraryItemCommand");
|
static const int drop3DLibraryItemCommandType = QMetaType::type("Drop3DLibraryItemCommand");
|
||||||
|
static const int view3DClosedCommand = QMetaType::type("View3DClosedCommand");
|
||||||
|
|
||||||
if (m_destructing)
|
if (m_destructing)
|
||||||
return;
|
return;
|
||||||
@@ -311,6 +313,8 @@ void NodeInstanceServerProxy::dispatchCommand(const QVariant &command, PuppetStr
|
|||||||
nodeInstanceClient()->selectionChanged(command.value<ChangeSelectionCommand>());
|
nodeInstanceClient()->selectionChanged(command.value<ChangeSelectionCommand>());
|
||||||
} else if (command.userType() == drop3DLibraryItemCommandType) {
|
} else if (command.userType() == drop3DLibraryItemCommandType) {
|
||||||
nodeInstanceClient()->library3DItemDropped(command.value<Drop3DLibraryItemCommand>());
|
nodeInstanceClient()->library3DItemDropped(command.value<Drop3DLibraryItemCommand>());
|
||||||
|
} else if (command.userType() == view3DClosedCommand) {
|
||||||
|
nodeInstanceClient()->view3DClosed(command.value<View3DClosedCommand>());
|
||||||
} else if (command.userType() == puppetAliveCommandType) {
|
} else if (command.userType() == puppetAliveCommandType) {
|
||||||
puppetAlive(puppetStreamType);
|
puppetAlive(puppetStreamType);
|
||||||
} else if (command.userType() == synchronizeCommandType) {
|
} else if (command.userType() == synchronizeCommandType) {
|
||||||
|
|||||||
@@ -1446,6 +1446,13 @@ void NodeInstanceView::library3DItemDropped(const Drop3DLibraryItemCommand &comm
|
|||||||
QmlVisualNode::createQmlVisualNode(this, itemLibraryEntry, {});
|
QmlVisualNode::createQmlVisualNode(this, itemLibraryEntry, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NodeInstanceView::view3DClosed(const View3DClosedCommand &command)
|
||||||
|
{
|
||||||
|
Q_UNUSED(command)
|
||||||
|
|
||||||
|
rootModelNode().setAuxiliaryData("3d-view", false);
|
||||||
|
}
|
||||||
|
|
||||||
void NodeInstanceView::selectedNodesChanged(const QList<ModelNode> &selectedNodeList,
|
void NodeInstanceView::selectedNodesChanged(const QList<ModelNode> &selectedNodeList,
|
||||||
const QList<ModelNode> & /*lastSelectedNodeList*/)
|
const QList<ModelNode> & /*lastSelectedNodeList*/)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ void DesignerSettings::fromSettings(QSettings *settings)
|
|||||||
restoreValue(settings, DesignerSettingsKey::CONTROLS_STYLE);
|
restoreValue(settings, DesignerSettingsKey::CONTROLS_STYLE);
|
||||||
restoreValue(settings, DesignerSettingsKey::SHOW_PROPERTYEDITOR_WARNINGS, false);
|
restoreValue(settings, DesignerSettingsKey::SHOW_PROPERTYEDITOR_WARNINGS, false);
|
||||||
restoreValue(settings, DesignerSettingsKey::ENABLE_MODEL_EXCEPTION_OUTPUT, false);
|
restoreValue(settings, DesignerSettingsKey::ENABLE_MODEL_EXCEPTION_OUTPUT, false);
|
||||||
restoreValue(settings, DesignerSettingsKey::PUPPET_KILL_TIMEOUT, 3000); // this has no ui at the moment
|
restoreValue(settings, DesignerSettingsKey::PUPPET_KILL_TIMEOUT, 30000); // this has no ui at the moment
|
||||||
restoreValue(settings, DesignerSettingsKey::DEBUG_PUPPET, QString());
|
restoreValue(settings, DesignerSettingsKey::DEBUG_PUPPET, QString());
|
||||||
restoreValue(settings, DesignerSettingsKey::FORWARD_PUPPET_OUTPUT, QString());
|
restoreValue(settings, DesignerSettingsKey::FORWARD_PUPPET_OUTPUT, QString());
|
||||||
restoreValue(settings, DesignerSettingsKey::REFORMAT_UI_QML_FILES, true);
|
restoreValue(settings, DesignerSettingsKey::REFORMAT_UI_QML_FILES, true);
|
||||||
|
|||||||
@@ -175,6 +175,8 @@ Project {
|
|||||||
"commands/update3dviewstatecommand.h",
|
"commands/update3dviewstatecommand.h",
|
||||||
"commands/enable3dviewcommand.cpp",
|
"commands/enable3dviewcommand.cpp",
|
||||||
"commands/enable3dviewcommand.h",
|
"commands/enable3dviewcommand.h",
|
||||||
|
"commands/view3dclosedcommand.cpp",
|
||||||
|
"commands/view3dclosedcommand.h",
|
||||||
"container/addimportcontainer.cpp",
|
"container/addimportcontainer.cpp",
|
||||||
"container/addimportcontainer.h",
|
"container/addimportcontainer.h",
|
||||||
"container/idcontainer.cpp",
|
"container/idcontainer.cpp",
|
||||||
|
|||||||
@@ -833,6 +833,10 @@ TextEditorWidgetPrivate::TextEditorWidgetPrivate(TextEditorWidget *parent)
|
|||||||
m_fileLineEnding->addItems(ExtraEncodingSettings::lineTerminationModeNames());
|
m_fileLineEnding->addItems(ExtraEncodingSettings::lineTerminationModeNames());
|
||||||
m_fileLineEnding->setContentsMargins(spacing, 0, spacing, 0);
|
m_fileLineEnding->setContentsMargins(spacing, 0, spacing, 0);
|
||||||
m_fileLineEndingAction = m_toolBar->addWidget(m_fileLineEnding);
|
m_fileLineEndingAction = m_toolBar->addWidget(m_fileLineEnding);
|
||||||
|
m_fileLineEndingAction->setVisible(!q->isReadOnly());
|
||||||
|
connect(q, &TextEditorWidget::readOnlyChanged, this, [this] {
|
||||||
|
m_fileLineEndingAction->setVisible(!q->isReadOnly());
|
||||||
|
});
|
||||||
|
|
||||||
m_fileEncodingLabel = new FixedSizeClickLabel;
|
m_fileEncodingLabel = new FixedSizeClickLabel;
|
||||||
m_fileEncodingLabel->setContentsMargins(spacing, 0, spacing, 0);
|
m_fileEncodingLabel->setContentsMargins(spacing, 0, spacing, 0);
|
||||||
|
|||||||
@@ -207,6 +207,7 @@ void UpdateInfoPlugin::checkForUpdatesFinished()
|
|||||||
label->setContentsMargins(0, 0, 0, 8);
|
label->setContentsMargins(0, 0, 0, 8);
|
||||||
return label;
|
return label;
|
||||||
});
|
});
|
||||||
|
Core::ICore::infoBar()->removeInfo(InstallUpdates); // remove any existing notifications
|
||||||
Core::ICore::infoBar()->unsuppressInfo(InstallUpdates);
|
Core::ICore::infoBar()->unsuppressInfo(InstallUpdates);
|
||||||
Core::ICore::infoBar()->addInfo(info);
|
Core::ICore::infoBar()->addInfo(info);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -137,10 +137,9 @@ WinRtDeviceFactory::WinRtDeviceFactory(Core::Id deviceType)
|
|||||||
void WinRtDeviceFactory::autoDetect()
|
void WinRtDeviceFactory::autoDetect()
|
||||||
{
|
{
|
||||||
qCDebug(winrtDeviceLog) << __FUNCTION__;
|
qCDebug(winrtDeviceLog) << __FUNCTION__;
|
||||||
MessageManager::write(tr("Running Windows Runtime device detection."));
|
|
||||||
const QString runnerFilePath = findRunnerFilePath();
|
const QString runnerFilePath = findRunnerFilePath();
|
||||||
if (runnerFilePath.isEmpty()) {
|
if (runnerFilePath.isEmpty()) {
|
||||||
MessageManager::write(tr("No winrtrunner.exe found."));
|
qCDebug(winrtDeviceLog) << "No winrtrunner.exe found.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,7 +154,6 @@ void WinRtDeviceFactory::autoDetect()
|
|||||||
const CommandLine cmd{runnerFilePath, {"--list-devices"}};
|
const CommandLine cmd{runnerFilePath, {"--list-devices"}};
|
||||||
m_process->setCommand(cmd);
|
m_process->setCommand(cmd);
|
||||||
qCDebug(winrtDeviceLog) << __FUNCTION__ << "Starting process" << cmd.toUserOutput();
|
qCDebug(winrtDeviceLog) << __FUNCTION__ << "Starting process" << cmd.toUserOutput();
|
||||||
MessageManager::write(cmd.toUserOutput());
|
|
||||||
m_process->start();
|
m_process->start();
|
||||||
qCDebug(winrtDeviceLog) << __FUNCTION__ << "Process started";
|
qCDebug(winrtDeviceLog) << __FUNCTION__ << "Process started";
|
||||||
}
|
}
|
||||||
@@ -361,7 +359,7 @@ void WinRtDeviceFactory::parseRunnerOutput(const QByteArray &output) const
|
|||||||
message += QLatin1Char(' ');
|
message += QLatin1Char(' ');
|
||||||
message += tr("%n of them are new.", nullptr, numNew);
|
message += tr("%n of them are new.", nullptr, numNew);
|
||||||
}
|
}
|
||||||
MessageManager::write(message);
|
qCDebug(winrtDeviceLog) << message;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ extend_qtc_executable(qml2puppet
|
|||||||
drop3dlibraryitemcommand.cpp drop3dlibraryitemcommand.h
|
drop3dlibraryitemcommand.cpp drop3dlibraryitemcommand.h
|
||||||
update3dviewstatecommand.cpp update3dviewstatecommand.h
|
update3dviewstatecommand.cpp update3dviewstatecommand.h
|
||||||
enable3dviewcommand.cpp enable3dviewcommand.h
|
enable3dviewcommand.cpp enable3dviewcommand.h
|
||||||
|
view3dclosedcommand.cpp view3dclosedcommand.h
|
||||||
valueschangedcommand.cpp
|
valueschangedcommand.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -101,6 +101,8 @@ QtcTool {
|
|||||||
"commands/update3dviewstatecommand.h",
|
"commands/update3dviewstatecommand.h",
|
||||||
"commands/enable3dviewcommand.cpp",
|
"commands/enable3dviewcommand.cpp",
|
||||||
"commands/enable3dviewcommand.h",
|
"commands/enable3dviewcommand.h",
|
||||||
|
"commands/view3dclosedcommand.cpp",
|
||||||
|
"commands/view3dclosedcommand.h",
|
||||||
"container/addimportcontainer.cpp",
|
"container/addimportcontainer.cpp",
|
||||||
"container/addimportcontainer.h",
|
"container/addimportcontainer.h",
|
||||||
"container/idcontainer.cpp",
|
"container/idcontainer.cpp",
|
||||||
|
|||||||
Reference in New Issue
Block a user