Example: Connect to correct slot
Pick-to: 5.15 Fixes: QTBUG-85009 Change-Id: Id4db9a20e6c92ae86c764abb723fbe4ad426f2f8 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>bb10
parent
878551a146
commit
f7f5055702
|
|
@ -233,7 +233,7 @@ void ColorDock::changeSizeHints()
|
|||
|
||||
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
|
||||
connect(buttonBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::reject);
|
||||
connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
|
||||
|
||||
topLayout->addWidget(buttonBox);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue