-
Notifications
You must be signed in to change notification settings - Fork 1
/
visawidget.h
38 lines (34 loc) · 867 Bytes
/
visawidget.h
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
/*
* 签证差价界面
* */
#ifndef VISAWIDGET_H
#define VISAWIDGET_H
#pragma once
#include <QtWidgets>
#include "util.h"
#include "visaprice.h"
#include "triradios.h"
#include "triradiosv.h"
class VisaWidget : public QWidget
{
Q_OBJECT
VisaPrice visaPrice;
QLineEdit *inputPriceEdit,*mileEdit,*resultEdit;
TriRadiosV *throughRadios;
TriRadios *fastRadios,*acRadios,*discountRadios;
QComboBox *seatCombo;
QCheckBox *useInputCheck;
public:
explicit VisaWidget(const PriceList* oldlist,const PriceList* newlist,
QWidget *parent = nullptr);
private:
void calAllSeats();
void addTableRow(int row,const QString& name,double number,QTableWidget* tw);
signals:
private slots:
void useInputChanged(bool checked);
void calculate();
void detail();
void calMile();
};
#endif // VISAWIDGET_H