Calender drop down bug fix

This commit is contained in:
Mark Watkins 2011-10-31 00:23:59 +10:00
parent 4d1748d7d2
commit b0fec0c74a

View File

@ -888,7 +888,8 @@ void Daily::on_nextDayButton_clicked()
void Daily::on_calButton_toggled(bool checked) void Daily::on_calButton_toggled(bool checked)
{ {
bool b=!ui->calendar->isVisible(); //bool b=!ui->calendar->isVisible();
bool b=checked;
ui->calendar->setVisible(b); ui->calendar->setVisible(b);
if (!b) ui->calButton->setArrowType(Qt::DownArrow); if (!b) ui->calButton->setArrowType(Qt::DownArrow);
else ui->calButton->setArrowType(Qt::UpArrow); else ui->calButton->setArrowType(Qt::UpArrow);