Beispiel #1
0
void WCalendar::cellDblClicked(Coordinate weekday)
{
  date dt = dateForCell(weekday.i, weekday.j);
  WDate d(dt.year(), dt.month(), dt.day());
  if (isInvalid(d))
    return;

  selectInCurrentMonth(d);

  if (selectionMode_ != ExtendedSelection && !singleClickSelect_)
    activated().emit(d);
}
Beispiel #2
0
void WCalendar::cellDblClicked(Coordinate weekday)
{
  WDate dt = dateForCell(weekday.i, weekday.j);
  if (isInvalid(dt))
    return;

  selectInCurrentMonth(dt);

  if (selectionMode_ != SelectionMode::Extended &&
      !singleClickSelect_)
    activated().emit(dt);
}