CSelectResourcePanel: Make use of Qt 5 signals and slots
@@ -18,9 +18,9 @@ CSelectResourcePanel::CSelectResourcePanel(CResourceSelector *pSelector)
mpUI->ResourceTableView->setModel(&mProxyModel);
// Signals/slots
- connect(gpEdApp, SIGNAL(focusChanged(QWidget*,QWidget*)), this, SLOT(FocusChanged(QWidget*,QWidget*)));
- connect(mpUI->SearchBar, SIGNAL(StoppedTyping(QString)), this, SLOT(SearchStringChanged(QString)));
- connect(mpUI->ResourceTableView, SIGNAL(clicked(QModelIndex)), this, SLOT(ResourceClicked(QModelIndex)));
+ connect(gpEdApp, &QApplication::focusChanged, this, &CSelectResourcePanel::FocusChanged);
+ connect(mpUI->SearchBar, &CTimedLineEdit::StoppedTyping, this, &CSelectResourcePanel::SearchStringChanged);
+ connect(mpUI->ResourceTableView, &QTableView::clicked, this, &CSelectResourcePanel::ResourceClicked);
// Determine size
QPoint SelectorPos = pSelector->parentWidget()->mapToGlobal( pSelector->pos() );
