Change setAvailableDates to setValues of SelectDialog

This commit is contained in:
Krad
2022-04-01 15:28:18 +08:00
parent 27832c6d76
commit da284a2d0b
5 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ UserOperationLogForm::UserOperationLogForm(QWidget* parent) {
dialog = new SelectDialog(this);
dialog->setWindowModality(Qt::WindowModal);
}
dialog->setAvailableDates(dates);
dialog->setValues(dates);
if (!selectedDateStr.isEmpty()) dialog->setSelectedValue(selectedDateStr);
if (dialog->exec() == QDialog::Accepted)
{