forked from qt-creator/qt-creator
QmlDesigner: Fix disappearing plus states editor
* Fix issue the plus (Canvas) in the states editor is not drawn when the view was hidden before and comes back on * Improve paint method Task-number: QDS-8419 Change-Id: I959b4b6a418deba95380d8f5cafc7af09a0362e8 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
committed by
Henning Gründl
parent
ccbda4655e
commit
fd1864d678
@@ -43,10 +43,10 @@
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QShortcut>
|
||||
#include <QBoxLayout>
|
||||
#include <QFileInfo>
|
||||
#include <QKeySequence>
|
||||
#include <QShortcut>
|
||||
|
||||
#include <QQmlContext>
|
||||
#include <QQmlEngine>
|
||||
@@ -142,6 +142,7 @@ void StatesEditorWidget::showEvent(QShowEvent *event)
|
||||
{
|
||||
QQuickWidget::showEvent(event);
|
||||
update();
|
||||
QMetaObject::invokeMethod(rootObject(), "showEvent");
|
||||
}
|
||||
|
||||
void StatesEditorWidget::focusOutEvent(QFocusEvent *focusEvent)
|
||||
|
||||
Reference in New Issue
Block a user