mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2026-01-27 00:08:58 -05:00
* Move ui files to separate directory * Move source files * Change forms location in CMakeLists.txt * Add gui subdirectory to include directories * Change references to files in CMakeLists.txt * Move remaining custom widgets
23 lines
707 B
C++
Executable File
23 lines
707 B
C++
Executable File
#include "winappprofiletimerdialog.h"
|
|
#include "ui_winappprofiletimerdialog.h"
|
|
|
|
WinAppProfileTimerDialog::WinAppProfileTimerDialog(QWidget *parent)
|
|
: QDialog(parent)
|
|
, ui(new Ui::WinAppProfileTimerDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
setAttribute(Qt::WA_DeleteOnClose);
|
|
|
|
connect(&appTimer, SIGNAL(timeout()), this, SLOT(accept()));
|
|
connect(ui->capturePushButton, SIGNAL(clicked()), this, SLOT(startTimer()));
|
|
connect(ui->cancelPushButton, SIGNAL(clicked()), this, SLOT(close()));
|
|
}
|
|
|
|
WinAppProfileTimerDialog::~WinAppProfileTimerDialog() { delete ui; }
|
|
|
|
void WinAppProfileTimerDialog::startTimer()
|
|
{
|
|
appTimer.start(ui->intervalSpinBox->value() * 1000);
|
|
this->setEnabled(false);
|
|
}
|