connect(ui
->calendarWidget,
SIGNAL(clicked
(QDate)),
this,
SLOT(showDate
(QDate)));
connect(ui
->calendarWidget,
SIGNAL(activated
(QDate)),
this,
SLOT(showset
()));
}
void SeeCycleM
::showDate(QDate date
) {
ui->lineEdit->setText(date.toString());
}
void SeeCycleM::showset()
{
SetCycleM a(this);
connect(&a,SIGNAL(setclicked()),this,SLOT(setcolors()));
connect(&a,SIGNAL(unsetClicked()),this,SLOT(unsetColors()));
a.show();
a.exec();
}
connect(ui->calendarWidget,SIGNAL(clicked(QDate)),this,SLOT(showDate(QDate)));
connect(ui->calendarWidget,SIGNAL(activated(QDate)),this,SLOT(showset()));
}
void SeeCycleM::showDate(QDate date)
{
ui->lineEdit->setText(date.toString());
}
void SeeCycleM::showset()
{
SetCycleM a(this);
connect(&a,SIGNAL(setclicked()),this,SLOT(setcolors()));
connect(&a,SIGNAL(unsetClicked()),this,SLOT(unsetColors()));
a.show();
a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks