Make the new instance dialog support instance types.
This commit is contained in:
parent
7ec32d5657
commit
ff3078b3a6
8 changed files with 177 additions and 0 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <gui/taskdialog.h>
|
||||
|
||||
#include <instversionlist.h>
|
||||
#include <instversion.h>
|
||||
#include <task.h>
|
||||
|
||||
VersionSelectDialog::VersionSelectDialog(InstVersionList *vlist, QWidget *parent) :
|
||||
|
@ -56,6 +57,15 @@ void VersionSelectDialog::loadList()
|
|||
taskDlg->exec(loadTask);
|
||||
}
|
||||
|
||||
const InstVersion *VersionSelectDialog::selectedVersion() const
|
||||
{
|
||||
const InstVersion *versionPtr = (const InstVersion *)
|
||||
m_vlist->data(ui->listView->selectionModel()->currentIndex(),
|
||||
InstVersionList::VersionPointerRole).value<void *>();
|
||||
|
||||
return versionPtr;
|
||||
}
|
||||
|
||||
void VersionSelectDialog::on_refreshButton_clicked()
|
||||
{
|
||||
loadList();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue