fix: use proper function references

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-01 22:55:33 +02:00
parent cde45e5e11
commit 35b993c248
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -51,7 +51,7 @@ void InstanceView::prepareModel()
m_proxy = new InstanceProxyModel(this);
m_proxy->setSortCaseSensitivity(Qt::CaseInsensitive);
m_proxy->setSourceModel(m_instances);
connect(m_proxy, &InstanceProxyModel::dataChanged, this, &InstanceView::dataChanged);
connect(m_proxy, &QAbstractItemModel::dataChanged, this, &InstanceView::dataChanged);
}
void InstanceView::createTable()
@ -91,7 +91,7 @@ void InstanceView::createTable()
if (!APPLICATION->settings()->contains("InstanceViewTableHeaderState"))
m_table->sortByColumn(InstanceList::LastPlayedColumn, Qt::AscendingOrder);
connect(m_table, &QTableView::doubleClicked, this, &InstanceView::activateInstance);
connect(m_table, &QAbstractItemView::doubleClicked, this, &InstanceView::activateInstance);
connect(m_table->selectionModel(), &QItemSelectionModel::currentRowChanged, this, &InstanceView::currentRowChanged);
connect(m_table->selectionModel(), &QItemSelectionModel::currentColumnChanged, this, &InstanceView::selectNameColumn);
connect(m_table, &QWidget::customContextMenuRequested, this, &InstanceView::contextMenuRequested);