forked from qt-creator/qt-creator
QmlDesigner: Fix Component Library header
Hover was not working on LibraryHeader.qml. There seems to be some issues between QQuickWidget and QML Item. Header width and height are now set with m_headerWidget instead of root Item. Fixes: QDS-4387 Change-Id: Ic587be319bb7aa6755fa26f6211ce11eb9795c67 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -32,8 +32,6 @@ import StudioTheme 1.0 as StudioTheme
|
||||
|
||||
Item {
|
||||
id: root
|
||||
width: 200
|
||||
height: 75
|
||||
|
||||
function setTab(index)
|
||||
{
|
||||
|
@@ -148,6 +148,8 @@ ItemLibraryWidget::ItemLibraryWidget(AsynchronousImageCache &imageCache,
|
||||
|
||||
// create header widget
|
||||
m_headerWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
|
||||
m_headerWidget->setMinimumHeight(75);
|
||||
m_headerWidget->setMinimumWidth(100);
|
||||
Theme::setupTheme(m_headerWidget->engine());
|
||||
m_headerWidget->engine()->addImportPath(propertyEditorResourcesPath() + "/imports");
|
||||
m_headerWidget->setClearColor(Theme::getColor(Theme::Color::DSpanelBackground));
|
||||
|
Reference in New Issue
Block a user