彻底改版2.0
This commit is contained in:
38
widget/lunarcalendarwidget/frmlunarcalendarwidget.cpp
Normal file
38
widget/lunarcalendarwidget/frmlunarcalendarwidget.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "frmlunarcalendarwidget.h"
|
||||
#include "ui_frmlunarcalendarwidget.h"
|
||||
|
||||
frmLunarCalendarWidget::frmLunarCalendarWidget(QWidget *parent) : QWidget(parent), ui(new Ui::frmLunarCalendarWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->initForm();
|
||||
}
|
||||
|
||||
frmLunarCalendarWidget::~frmLunarCalendarWidget()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void frmLunarCalendarWidget::initForm()
|
||||
{
|
||||
ui->cboxWeekNameFormat->setCurrentIndex(2);
|
||||
}
|
||||
|
||||
void frmLunarCalendarWidget::on_cboxCalendarStyle_currentIndexChanged(int index)
|
||||
{
|
||||
ui->lunarCalendarWidget->setCalendarStyle((LunarCalendarWidget::CalendarStyle)index);
|
||||
}
|
||||
|
||||
void frmLunarCalendarWidget::on_cboxSelectType_currentIndexChanged(int index)
|
||||
{
|
||||
ui->lunarCalendarWidget->setSelectType((LunarCalendarWidget::SelectType)index);
|
||||
}
|
||||
|
||||
void frmLunarCalendarWidget::on_cboxWeekNameFormat_currentIndexChanged(int index)
|
||||
{
|
||||
ui->lunarCalendarWidget->setWeekNameFormat((LunarCalendarWidget::WeekNameFormat)index);
|
||||
}
|
||||
|
||||
void frmLunarCalendarWidget::on_ckShowLunar_stateChanged(int arg1)
|
||||
{
|
||||
ui->lunarCalendarWidget->setShowLunar(arg1 != 0);
|
||||
}
|
||||
Reference in New Issue
Block a user