mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
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:
@@ -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))
|
||||
|
||||
@@ -54,7 +54,6 @@ class ElementsCollectionWidget : public QWidget
|
||||
void setCurrentLocation(const ElementsLocation &location);
|
||||
|
||||
protected:
|
||||
virtual bool event(QEvent *event);
|
||||
virtual void leaveEvent(QEvent *event);
|
||||
|
||||
private:
|
||||
@@ -78,7 +77,7 @@ class ElementsCollectionWidget : public QWidget
|
||||
void showAndExpandItem (const QModelIndex &index, bool parent = true, bool child = false);
|
||||
ElementCollectionItem *elementCollectionItemForIndex (const QModelIndex &index);
|
||||
|
||||
private slots:
|
||||
public slots:
|
||||
void reload();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user