mirror of
https://github.com/emrullah-enis-ctnky/StopWatch-tr.git
synced 2025-04-21 08:49:10 +00:00
68 lines
2.1 KiB
C++
68 lines
2.1 KiB
C++
/**
|
||
|
||
StopWatch-tr Türkçe bir kronometre uygulamasıdır. Geliştirdikçe farklı diller de gelebilir.
|
||
|
||
Copyright (C) 2025 Emrullah Enis Çetinkaya and contributors
|
||
|
||
This program is free software: you can redistribute it and/or modify
|
||
it under the terms of the GNU General Public License as published by
|
||
the Free Software Foundation, either version 3 of the License, or
|
||
(at your option) any later version.
|
||
|
||
This program is distributed in the hope that it will be useful,
|
||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
GNU General Public License for more details.
|
||
|
||
You should have received a copy of the GNU General Public License
|
||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
||
**/
|
||
|
||
#include "time_set_window.h"
|
||
#include "ui_time_set_window.h"
|
||
|
||
time_set_window::time_set_window(QWidget *parent)
|
||
: QWidget(parent)
|
||
, ui(new Ui::time_set_window)
|
||
{
|
||
ui->setupUi(this);
|
||
setWindowTitle("Zamanı Ayarla");
|
||
setWindowFlags(Qt::Window);
|
||
connect(ui->pushButton_time_set,SIGNAL(clicked()),this,SIGNAL(push_button_clicked()));
|
||
QIntValidator *validator=new QIntValidator(0,59,ui->lineEdit_hour);
|
||
ui->lineEdit_hour->setValidator(validator);
|
||
QIntValidator *validator2=new QIntValidator(0,59,ui->lineEdit_minute);
|
||
ui->lineEdit_minute->setValidator(validator2);
|
||
QIntValidator *validator3=new QIntValidator(0,59,ui->lineEdit_second);
|
||
ui->lineEdit_second->setValidator(validator3);
|
||
}
|
||
|
||
time_set_window::~time_set_window()
|
||
{
|
||
delete ui;
|
||
}
|
||
|
||
QString time_set_window::line_edit_second_func()
|
||
{
|
||
return ui->lineEdit_second->text();
|
||
}
|
||
|
||
QString time_set_window::line_edit_minute_func()
|
||
{
|
||
return ui->lineEdit_minute->text();
|
||
}
|
||
|
||
QString time_set_window::line_edit_hour_func()
|
||
{
|
||
return ui->lineEdit_hour->text();
|
||
}
|
||
void time_set_window::line_edit_clear(){
|
||
ui->lineEdit_second->clear();
|
||
ui->lineEdit_hour->clear();
|
||
ui->lineEdit_minute->clear();
|
||
}
|
||
void time_set_window::closeEvent(QCloseEvent *event){
|
||
line_edit_clear();
|
||
emit close_event_signal();
|
||
}
|