-
Notifications
You must be signed in to change notification settings - Fork 0
/
third_windows.cpp
51 lines (39 loc) · 1.14 KB
/
third_windows.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "third_windows.h"
#include "ui_third_windows.h"
#include "second_windows.h"
#include <QLabel>
#include <QDateTimeEdit>
#include <QDoubleSpinBox>
#include <QVBoxLayout>
#include <QtGui>
#include <QSpinBox>
#include <QRadioButton>
#include <QDoubleSpinBox>
#include <iostream>
using namespace std;
Third_windows::Third_windows(QWidget *parent) :
QWidget(parent),
ui(new Ui::Third_windows)
{
ui->setupUi(this);
////////// DATE SETTING //////////
ui->time_set_data->setDisplayFormat("dd MMM yyyy");
ui->time_set_data->setDateTime( QDateTime::currentDateTime() );
ui->time_set_data->setMaximumDateTime(QDateTime::currentDateTime());
////////// DOUBLESPIN SETTING //////////
ui->progress_nr->setMinimum(0);
ui->progress_nr->setMaximum(1.0);
ui->progress_nr->setSingleStep(0.01);
}
Third_windows::~Third_windows()
{
delete ui;
}
void Third_windows::on_end_button_clicked()
{
if(var1 < nr_spin)
ui->end_button->setText("Adăugare element.");
i++;
}
ui->end_button->setText("Am terminat!");
}