Пример #1
0
void CalendarCell::showEntryDialog()
{
  WString title =
    tr("calendar.entry.title").arg(date_.toString("ddd, d MMM yyyy"));

  EntryDialog* ed = new EntryDialog(title, this);
  ed->show();
}
Пример #2
0
int Entry::open_new_dialog()
{
    EntryDialog * dialog = new EntryDialog();
    dialog->set_entry(this);
    dialog->show();
    dialog->hasFocus();
    return dialog->exec();
}