Make the new instance dialog support instance types.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user