CSelectResourcePanel: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-29 04:43:15 -04:00
parent f28e4d4914
commit 8df5ec051d
1 changed files with 3 additions and 3 deletions

View File

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