Device support: Move processes dialog creation to settings widget.

With the process list model being publicly available from the IDevice
interface, there's no longer a need to force all subclasses to create
the dialog themselves via opaque handles.
Since clients can now check whether a device offers a process list,
the base process list model has been made abstract.

Change-Id: If4a0aa68a95b221862c287ad8397ebabe9be5909
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Christian Kandeler
2012-08-03 09:56:39 +02:00
committed by hjk
parent aa2434d093
commit 1d00146e21
13 changed files with 47 additions and 49 deletions

View File

@@ -207,7 +207,7 @@ void StartGdbServerDialog::attachToDevice()
{
IDevice::ConstPtr device = d->currentDevice();
// TODO: display error on non-matching device.
if (!device)
if (!device || !device->canCreateProcessModel())
return;
delete d->processList;
d->processList = device->createProcessListModel();