From e6c2ed8d5f306ed8211bd3d0b45f5500c1c011b1 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sun, 5 Jun 2016 19:55:41 +0000 Subject: [PATCH] Minor change to be able to compile with Qt < 5.4 git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4541 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/ElementsCollection/elementscollectionwidget.cpp | 2 +- sources/ElementsCollection/elementscollectionwidget.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sources/ElementsCollection/elementscollectionwidget.cpp b/sources/ElementsCollection/elementscollectionwidget.cpp index 147d7ed8c..f61eda389 100644 --- a/sources/ElementsCollection/elementscollectionwidget.cpp +++ b/sources/ElementsCollection/elementscollectionwidget.cpp @@ -80,7 +80,7 @@ bool ElementsCollectionWidget::event(QEvent *event) { if (m_first_show && event->type() == QEvent::WindowActivate) { m_first_show = false; - QTimer::singleShot(250, this, &ElementsCollectionWidget::reload); + QTimer::singleShot(250, this, SLOT(reload())); } return QWidget::event(event); diff --git a/sources/ElementsCollection/elementscollectionwidget.h b/sources/ElementsCollection/elementscollectionwidget.h index 80c1f5fca..e8d5c849b 100644 --- a/sources/ElementsCollection/elementscollectionwidget.h +++ b/sources/ElementsCollection/elementscollectionwidget.h @@ -65,13 +65,16 @@ class ElementsCollectionWidget : public QWidget void newElement(); void showThisDir(); void resetShowThisDir(); - void reload(); void search(const QString &text); void hideCollection(bool hide = true); void hideItem(bool hide, const QModelIndex &index = QModelIndex(), bool recursive = true); void showAndExpandItem (const QModelIndex &index, bool parent = true, bool child = false); ElementCollectionItem *elementCollectionItemForIndex (const QModelIndex &index); + private slots: + void reload(); + + private: ElementsCollectionModel *m_model; QLineEdit *m_search_field;