Skip to content
Snippets Groups Projects
Commit a2edfd2a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: property pane is hidden if it does not fit

if there is no place for the property pane we hide it
parent 825c43dd
No related merge requests found
...@@ -89,6 +89,7 @@ void ContextPaneWidget::activate(const QPoint &pos, const QPoint &alternative, c ...@@ -89,6 +89,7 @@ void ContextPaneWidget::activate(const QPoint &pos, const QPoint &alternative, c
void ContextPaneWidget::rePosition(const QPoint &position, const QPoint &alternative, const QPoint &alternative2) void ContextPaneWidget::rePosition(const QPoint &position, const QPoint &alternative, const QPoint &alternative2)
{ {
show();
if ((position.x() + width()) < parentWidget()->width()) if ((position.x() + width()) < parentWidget()->width())
move(position); move(position);
else else
...@@ -96,6 +97,8 @@ void ContextPaneWidget::rePosition(const QPoint &position, const QPoint &alterna ...@@ -96,6 +97,8 @@ void ContextPaneWidget::rePosition(const QPoint &position, const QPoint &alterna
if (pos().y() < 0) if (pos().y() < 0)
move(alternative2); move(alternative2);
if ((pos().y() + height()) > parentWidget()->height())
hide();
} }
void ContextPaneWidget::deactivate() void ContextPaneWidget::deactivate()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment