|
@ -3,7 +3,9 @@ |
|
|
#include <QtCore> |
|
|
#include <QtCore> |
|
|
#include "mainconfig.h" |
|
|
#include "mainconfig.h" |
|
|
|
|
|
|
|
|
#define FIXEDIDCARD "" |
|
|
#define NAMELIST_LENGTH 4 |
|
|
|
|
|
QString namelist[] = {"传立春","传立夏","传立秋","传立冬"}; |
|
|
|
|
|
qint8 gindex = 0; |
|
|
|
|
|
|
|
|
MainWidget::MainWidget(QWidget *parent) : |
|
|
MainWidget::MainWidget(QWidget *parent) : |
|
|
QWidget(parent), |
|
|
QWidget(parent), |
|
@ -185,8 +187,12 @@ void MainWidget::onPatientMergencyStatusChanged(QString firstAidId,QString time, |
|
|
|
|
|
|
|
|
void MainWidget::onKeyClicked() |
|
|
void MainWidget::onKeyClicked() |
|
|
{ |
|
|
{ |
|
|
emit complexOneKeyStart("142733198703123918","彭于晏","1","汉族"); |
|
|
emit complexOneKeyStart("142733198703123918",::namelist[::gindex],"1","汉族"); |
|
|
qDebug() << "Key Clicked"; |
|
|
qDebug() << "Key Clicked"; |
|
|
|
|
|
|
|
|
|
|
|
if(++::gindex >= NAMELIST_LENGTH){ |
|
|
|
|
|
::gindex = 0; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void MainWidget::addPatientToList(PatientEmergencyInfo *info) |
|
|
void MainWidget::addPatientToList(PatientEmergencyInfo *info) |
|
|