genode/repos/libports/src/app/qt5/qt_launchpad/child_entry.cpp
Norman Feske b44f0554bd Adapt high-level components to new parent API
This patch adjusts the various users of the 'Child' API to the changes
on the account of the new non-blocking parent interface. It also removes
the use of the no-longer-available 'Connection::KEEP_OPEN' feature.

With the adjustment, we took the opportunity to redesign several
components to fit the non-blocking execution model much better, in
particular the demo applications.

Issue #2120
2016-11-30 13:37:03 +01:00

27 lines
675 B
C++

/*
* \brief Child entry widget implementation
* \author Christian Prochaska
* \date 2008-04-06
*/
#include "child_entry.h"
Child_entry::Child_entry(Launchpad_child::Name const &name, int quota_kb,
int max_quota_kb, Launchpad &launchpad,
Launchpad_child &launchpad_child,
QWidget *parent)
: QWidget(parent), _launchpad(launchpad), _launchpad_child(launchpad_child)
{
ui.setupUi(this);
ui.nameLabel->setText(name.string());
ui.quotaBar->setMaximum(max_quota_kb);
ui.quotaBar->setValue(quota_kb);
}
void Child_entry::on_exitButton_clicked()
{
_launchpad.exit_child(_launchpad_child);
}