CSelectResourcePanel: Make use of Qt 5 signals and slots
This commit is contained in:
parent
f28e4d4914
commit
8df5ec051d
|
@ -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() );
|
||||||
|
|
Loading…
Reference in New Issue