3 #include "ActiveSessionOverview.h"
4 #include "ActiveSessionOverview.moc"
9 ActiveSessionOverview::ActiveSessionOverview(Session
*session
, QWidget
*parent
) : session(session
) {
10 info_form
= new QFormLayout();
12 info_form
->addRow(tr("Session name:"), new QLabel(session
->get_session_name()));
13 info_form
->addRow(tr("Executable path:"), new QLabel(session
->get_executable_path()));
14 info_form
->addRow(tr("Arguments:"), new QLabel(session
->get_arguments()));
15 info_form
->addRow(tr("Port:"), new QLabel(QString().setNum(session
->get_port())));
16 /* Use an empty QLabel as a separator. */
17 info_form
->addWidget(new QLabel());
18 status
= new QLabel();
19 info_form
->addRow(tr("Status:"), status
);
21 this->setLayout(info_form
);
24 void ActiveSessionOverview::update_status(QString new_status
) {
25 status
->setText(new_status
);
29 } // namespace Aesalon