Commit 7a118d07 authored by Laurent Montel's avatar Laurent Montel 😁

Add parent

parent 4cb9d537
...@@ -106,9 +106,9 @@ void MessageQueuer::sendOnDateClicked() ...@@ -106,9 +106,9 @@ void MessageQueuer::sendOnDateClicked()
dt->setDateTime(QDateTime::currentDateTime()); dt->setDateTime(QDateTime::currentDateTime());
dt->setDisplayFormat(QStringLiteral("hh:mm:ss")); dt->setDisplayFormat(QStringLiteral("hh:mm:ss"));
layout->addWidget(dt); layout->addWidget(dt);
auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, dialog);
connect(box, SIGNAL(accepted()), dialog, SLOT(accept())); connect(box, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
connect(box, SIGNAL(rejected()), dialog, SLOT(reject())); connect(box, &QDialogButtonBox::rejected, dialog, &QDialog::reject);
layout->addWidget(box); layout->addWidget(box);
if (!dialog->exec() || !dialog) { if (!dialog->exec() || !dialog) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment