-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIncreaseMoney.cpp
More file actions
48 lines (37 loc) · 863 Bytes
/
IncreaseMoney.cpp
File metadata and controls
48 lines (37 loc) · 863 Bytes
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
#include "IncreaseMoney.h"
#include "ui_IncreaseMoney.h"
#include "Global.h"
#include "EditProfileUser.h"
//#include <iostream>
void IncreaseMoney::fillBlanks(double last_m)
{
this->ui->spb_money->setValue(last_m);
this->ui->spb_sum->setValue(last_m);
return;
}
double IncreaseMoney::getMoney()
{
double money = this->ui->spb_sum->value();
return money;
}
IncreaseMoney::IncreaseMoney(QWidget *parent) :
QDialog(parent),
ui(new Ui::IncreaseMoney)
{
ui->setupUi(this);
//fillBlanks();
}
IncreaseMoney::~IncreaseMoney()
{
delete ui;
}
void IncreaseMoney::on_spb_add_valueChanged(double arg1)
{
double first = this->ui->spb_money->value();
double sum = arg1 + first;
this->ui->spb_sum->setValue(sum);
}
void IncreaseMoney::on_btn_box_accepted()
{
double sum_money = this->ui->spb_sum->value();
}