[qet] [4541] Minor change to be able to compile with Qt < 5.4

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4541
Author:   blacksun
Date:     2016-06-05 21:55:41 +0200 (Sun, 05 Jun 2016)
Log Message:
-----------
Minor change to be able to compile with Qt < 5.4

Modified Paths:
--------------
    trunk/sources/ElementsCollection/elementscollectionwidget.cpp
    trunk/sources/ElementsCollection/elementscollectionwidget.h

Modified: trunk/sources/ElementsCollection/elementscollectionwidget.cpp
===================================================================
--- trunk/sources/ElementsCollection/elementscollectionwidget.cpp	2016-06-05 17:00:55 UTC (rev 4540)
+++ trunk/sources/ElementsCollection/elementscollectionwidget.cpp	2016-06-05 19:55:41 UTC (rev 4541)
@@ -80,7 +80,7 @@
 {
 	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);

Modified: trunk/sources/ElementsCollection/elementscollectionwidget.h
===================================================================
--- trunk/sources/ElementsCollection/elementscollectionwidget.h	2016-06-05 17:00:55 UTC (rev 4540)
+++ trunk/sources/ElementsCollection/elementscollectionwidget.h	2016-06-05 19:55:41 UTC (rev 4541)
@@ -65,13 +65,16 @@
 		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;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/