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
This commit is contained in:
blacksun
2016-06-05 19:55:41 +00:00
parent 0261c5fa5e
commit e6c2ed8d5f
2 changed files with 5 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;