diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2020-02-04 14:20:42 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2020-02-06 10:33:31 +0000 |
commit | 85497ea4f2a401c3fbbfec36137547632b02cfdc (patch) | |
tree | 8dcd714563eebd1425c4823f47e95fdad460ae4e /src/plugins/qmldesigner/components/timelineeditor | |
parent | 1722a3c83778bf70c2b660907918aaaa3380b065 (diff) |
QmlDesigner: Remove unsued QGraphicsProxyWidget
Task-number: QDS-1525
Change-Id: I2270ad280cad36af3a8a66b5205a8049f93a7828
Reviewed-by: Knud Dollereder <knud.dollereder@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/timelineeditor')
-rw-r--r-- | src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp b/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp index cabd19d9ff..3af73cd823 100644 --- a/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp +++ b/src/plugins/qmldesigner/components/timelineeditor/timelinesectionitem.cpp @@ -46,15 +46,12 @@ #include <QAction> #include <QApplication> #include <QColorDialog> -#include <QComboBox> -#include <QGraphicsProxyWidget> #include <QGraphicsScene> #include <QGraphicsSceneMouseEvent> #include <QGraphicsView> #include <QHBoxLayout> #include <QMenu> #include <QPainter> -#include <QToolBar> #include <QGraphicsView> @@ -542,19 +539,6 @@ TimelineRulerSectionItem *TimelineRulerSectionItem::create(QGraphicsScene *paren auto widget = new QWidget; widget->setFixedWidth(TimelineConstants::sectionWidth); - auto toolBar = new QToolBar; - toolBar->setFixedHeight(TimelineConstants::rulerHeight); - - auto layout = new QHBoxLayout(widget); - layout->addWidget(toolBar); - layout->setContentsMargins(0, 0, 0, 0); - - layout->addWidget(toolBar); - layout->setContentsMargins(0, 0, 0, 0); - - QGraphicsProxyWidget *proxy = parentScene->addWidget(widget); - proxy->setParentItem(item); - return item; } |