mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 00:50:42 +08:00
46 lines
1008 B
C++
46 lines
1008 B
C++
// SPDX-FileCopyrightText: 2021 Ernie Pasveer <epasveer@att.net>
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#include "SeerSlashProcDialog.h"
|
|
|
|
SeerSlashProcDialog::SeerSlashProcDialog (QWidget* parent) : QDialog(parent) {
|
|
|
|
// Set up the UI.
|
|
setupUi(this);
|
|
|
|
// Setup the widgets
|
|
|
|
// Connect things.
|
|
QObject::connect(processInfoWidget, &QProcessInfoWidget::pidSelected, this, &SeerSlashProcDialog::handlePidSelected);
|
|
}
|
|
|
|
SeerSlashProcDialog::~SeerSlashProcDialog () {
|
|
}
|
|
|
|
int SeerSlashProcDialog::selectedPid () const {
|
|
|
|
return processInfoWidget->selectedPid();
|
|
}
|
|
|
|
QString SeerSlashProcDialog::selectedName () const {
|
|
|
|
return processInfoWidget->selectedName();
|
|
}
|
|
|
|
QString SeerSlashProcDialog::selectedFullname () const {
|
|
|
|
return processInfoWidget->selectedFullname();
|
|
}
|
|
|
|
QString SeerSlashProcDialog::selectedCommandLine () const {
|
|
|
|
return processInfoWidget->selectedCommandLine();
|
|
}
|
|
|
|
void SeerSlashProcDialog::handlePidSelected() {
|
|
|
|
done(QDialog::Accepted);
|
|
}
|
|
|