fix: use proper function references
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
cde45e5e11
commit
35b993c248
@ -51,7 +51,7 @@ void InstanceView::prepareModel()
|
|||||||
m_proxy = new InstanceProxyModel(this);
|
m_proxy = new InstanceProxyModel(this);
|
||||||
m_proxy->setSortCaseSensitivity(Qt::CaseInsensitive);
|
m_proxy->setSortCaseSensitivity(Qt::CaseInsensitive);
|
||||||
m_proxy->setSourceModel(m_instances);
|
m_proxy->setSourceModel(m_instances);
|
||||||
connect(m_proxy, &InstanceProxyModel::dataChanged, this, &InstanceView::dataChanged);
|
connect(m_proxy, &QAbstractItemModel::dataChanged, this, &InstanceView::dataChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
void InstanceView::createTable()
|
void InstanceView::createTable()
|
||||||
@ -91,7 +91,7 @@ void InstanceView::createTable()
|
|||||||
if (!APPLICATION->settings()->contains("InstanceViewTableHeaderState"))
|
if (!APPLICATION->settings()->contains("InstanceViewTableHeaderState"))
|
||||||
m_table->sortByColumn(InstanceList::LastPlayedColumn, Qt::AscendingOrder);
|
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::currentRowChanged, this, &InstanceView::currentRowChanged);
|
||||||
connect(m_table->selectionModel(), &QItemSelectionModel::currentColumnChanged, this, &InstanceView::selectNameColumn);
|
connect(m_table->selectionModel(), &QItemSelectionModel::currentColumnChanged, this, &InstanceView::selectNameColumn);
|
||||||
connect(m_table, &QWidget::customContextMenuRequested, this, &InstanceView::contextMenuRequested);
|
connect(m_table, &QWidget::customContextMenuRequested, this, &InstanceView::contextMenuRequested);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user