Ejemplo n.º 1
0
void Qt_launchpad::remove_child(Launchpad_child::Name const &name, Genode::Allocator &alloc)
{
	Child_entry *child_entry =
	  childrenDockWidgetContents->findChild<Child_entry*>(QString(name.string()) + "_child_entry");

	if (!child_entry) {
		PWRN("child entry lookup failed");
		return;
	}

	// still in "button clicked" event handler
	child_entry->deleteLater();

	childrenDockWidgetContents->adjustSize();
}
Ejemplo n.º 2
0
void Qt_launchpad::remove_child(const char *name, Genode::Allocator *alloc)
{
	Child_entry *child_entry =
	  childrenDockWidgetContents->findChild<Child_entry*>(QString(name) + "_child_entry");
	if (!child_entry) {
		PWRN("child entry lookup failed");
		return;
	}
	child_entry->say_hello();
	//PWRN("hello %lx",child_entry);
	// still in "button clicked" event handler
	child_entry->deleteLater();
	childrenDockWidgetContents->adjustSize();
	
	//PWRN("exit");
}