Version filtering and general related code sanitization.
Version list dialog has alternating row background set. Nostalgia versions, based on OneSix.
This commit is contained in:
parent
e5dc113bfc
commit
7e78a422e8
24 changed files with 254 additions and 431 deletions
|
@ -68,13 +68,11 @@ void VersionSelectDialog::loadList()
|
|||
taskDlg->exec(loadTask);
|
||||
}
|
||||
|
||||
const InstVersion *VersionSelectDialog::selectedVersion() const
|
||||
InstVersionPtr VersionSelectDialog::selectedVersion() const
|
||||
{
|
||||
const InstVersion *versionPtr = (const InstVersion *)
|
||||
m_proxyModel->data(ui->listView->selectionModel()->currentIndex(),
|
||||
InstVersionList::VersionPointerRole).value<void *>();
|
||||
|
||||
return versionPtr;
|
||||
auto currentIndex = ui->listView->selectionModel()->currentIndex();
|
||||
auto variant = m_proxyModel->data(currentIndex, InstVersionList::VersionPointerRole);
|
||||
return variant.value<InstVersionPtr>();
|
||||
}
|
||||
|
||||
void VersionSelectDialog::on_refreshButton_clicked()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue