代码拉取完成,页面将自动刷新
同步操作将从 clickto/GAS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif
#include "frmselect.h"
#include "ui_frmselect.h"
#include "api/myhelper.h"
frmSelect::frmSelect(QWidget *parent) :
QDialog(parent),
ui(new Ui::frmSelect)
{
ui->setupUi(this);
this->InitStyle();
myHelper::FormInCenter(this);
}
frmSelect::~frmSelect()
{
delete ui;
}
void frmSelect::InitStyle()
{
this->setWindowTitle(ui->lab_Title->text());
this->setProperty("Form", true);
this->setProperty("CanMove", true);
this->setWindowFlags(Qt::FramelessWindowHint | Qt::WindowSystemMenuHint | Qt::WindowMinimizeButtonHint);
IconHelper::Instance()->SetIcoMain(ui->lab_Ico, App::FontSize + 2);
IconHelper::Instance()->SetIcoClose(ui->btnMenu_Close);
connect(ui->btnMenu_Close, SIGNAL(clicked()), this, SLOT(close()));
connect(ui->btnClose, SIGNAL(clicked()), this, SLOT(close()));
int width = 20;
#ifdef __arm__
width = 25;
#endif
QString qss = QString("QComboBox::drop-down,QDateEdit::drop-down,QTimeEdit::drop-down,QDateTimeEdit::drop-down{width:%1px;}").arg(width);
this->setStyleSheet(qss);
ui->dateStart->setDate(QDate::currentDate());
ui->dateEnd->setDate(QDate::currentDate().addDays(1));
ui->dateStart->calendarWidget()->setLocale(QLocale::Chinese);
ui->dateEnd->calendarWidget()->setLocale(QLocale::Chinese);
}
void frmSelect::on_btnOk_clicked()
{
if (ui->dateStart->dateTime() > ui->dateEnd->dateTime()) {
myHelper::ShowMessageBoxErrorX("开始时间不能大于结束时间!");
return;
}
this->selectStartDateTime = ui->dateStart->dateTime().toString("yyyy-MM-dd HH:mm:ss");
this->selectEndDateTime = ui->dateEnd->dateTime().toString("yyyy-MM-dd HH:mm:ss");
done(1);
this->close();
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。