Exemplo n.º 1
0
void XDateEdit::showCalendar()
{
  if (DEBUG)
    qDebug("%s::showCalendar()",
            qPrintable(parent() ? parent()->objectName() : objectName()));
  DCalendarPopup *cal = new DCalendarPopup(date(), this);
  connect(cal, SIGNAL(newDate(const QDate &)), this, SIGNAL(newDate(const QDate &)));
  cal->show();
}
Exemplo n.º 2
0
void XDateEdit::showCalendar()
{
  if (DEBUG)
    qDebug("%s::showCalendar()",
            qPrintable(parent() ? parent()->objectName() : objectName()));
  QDate d = date();
  if(d.isNull() || d == _nullDate)
    d = QDate::currentDate();
  DCalendarPopup *cal = new DCalendarPopup(d, this);
  connect(cal, SIGNAL(newDate(const QDate &)), this, SIGNAL(newDate(const QDate &)));
  cal->show();
}
Exemplo n.º 3
0
void DLineEdit::showCalendar()
{
  DCalendarPopup *cal = new DCalendarPopup(date());
  connect(cal, SIGNAL(newDate(const QDate &)), this, SLOT(setDate(QDate)));
  cal->show();
}