forked from qt-creator/qt-creator
Update locking state from external views and cleanup
Improve treeview styling related to locking/pinning
Use font icons.
Show implicitly locked nodes by darkening text and icon.
Show implicitly locked curves by darkening the text.
Show unlocked/unpined icons only when hovering the mouse above the item.
It is now possible to lock/pin multiple curves by locking/pinning the node items.
Load unselected curves into the graphicsview when pinning them.
Rename namespace DesignTools to QmlDesigner.
Remove unused function from the timeline module.
Get rid of a memory leak.
Change-Id: I2c9c0a9e1ffe79520c4869178a11cc5825d04bbe
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
#include <QSplitter>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
namespace DesignTools {
|
||||
namespace QmlDesigner {
|
||||
|
||||
CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent)
|
||||
: QWidget(parent)
|
||||
@@ -52,10 +52,9 @@ CurveEditor::CurveEditor(CurveEditorModel *model, QWidget *parent)
|
||||
box->addWidget(splitter);
|
||||
setLayout(box);
|
||||
|
||||
connect(m_tree, &TreeView::treeItemLocked, model, &CurveEditorModel::curveChanged);
|
||||
connect(m_tree, &TreeView::treeItemPinned, model, &CurveEditorModel::curveChanged);
|
||||
connect(m_tree, &TreeView::treeItemLocked, model, &CurveEditorModel::setLocked);
|
||||
connect(m_tree, &TreeView::treeItemPinned, model, &CurveEditorModel::setPinned);
|
||||
|
||||
connect(m_tree, &TreeView::treeItemLocked, m_view, &GraphicsView::setLocked);
|
||||
connect(m_tree->selectionModel(),
|
||||
&SelectionModel::curvesSelected,
|
||||
m_view,
|
||||
@@ -180,4 +179,4 @@ QToolBar *CurveEditor::createToolBar(CurveEditorModel *model)
|
||||
return bar;
|
||||
}
|
||||
|
||||
} // End namespace DesignTools.
|
||||
} // End namespace QmlDesigner.
|
||||
|
||||
Reference in New Issue
Block a user