Improve last comit

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4955 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-05-01 16:22:34 +00:00
parent 310ce75089
commit 1a9c27b017
4 changed files with 21 additions and 22 deletions

View File

@@ -128,17 +128,6 @@ void ElementsCollectionWidget::setCurrentLocation(const ElementsLocation &locati
m_tree_view->setCurrentIndex(m_model->indexFromLocation(location));
}
bool ElementsCollectionWidget::event(QEvent *event)
{
if (m_first_show && event->type() == QEvent::Show)
{
m_first_show = false;
QTimer::singleShot(250, this, SLOT(reload()));
}
return QWidget::event(event);
}
void ElementsCollectionWidget::leaveEvent(QEvent *event)
{
if (QETDiagramEditor *qde = QETApp::diagramEditorAncestorOf(this))