Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 75b65d2d authored by Laurent Montel's avatar Laurent Montel 😁

Add parent to qdialogbuttonbox

parent 6a226d94
......@@ -30,7 +30,7 @@ SnippetDialog::SnippetDialog(KActionCollection *actionCollection, bool inGroupMo
, mActionCollection(actionCollection)
{
mUi = new Ui::SnippetDialog;
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
mOkButton->setDefault(true);
mOkButton->setShortcut(Qt::CTRL | Qt::Key_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