qtwaylandscanner: fix binding delegate to track resources
Global extension objects created with qtwaylandscanner may need to track their child resource list. This ensures bound objects are added to that list. Change-Id: I2875d84d2108ddad664c52ed1a11173312ff1b04 Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
This commit is contained in:
parent
7aba6b21cd
commit
570df4082d
@ -601,7 +601,7 @@ void process(QXmlStreamReader &xml)
|
||||
printf(" void %s::bind_func(struct ::wl_client *client, void *data, uint32_t version, uint32_t id)\n", interfaceName);
|
||||
printf(" {\n");
|
||||
printf(" Q_UNUSED(version);\n");
|
||||
printf(" static_cast<%s *>(data)->bind(client, id);\n", interfaceName);
|
||||
printf(" static_cast<%s *>(data)->add(client, id);\n", interfaceName);
|
||||
printf(" }\n");
|
||||
printf("\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user