Files
seer/src/SeerSlashProcDialog.cpp
T
2025-08-26 17:26:05 -05:00

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);
}