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
27 lines
675 B
C++
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);
|
|
}
|