mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
New slot syntax: Manually convert leftover QButtons
There is a bunch of QButton and similar widget connnections which cannot be converted to new slot syntax automatically. Fix them by hand and bundle them for testing.
This commit is contained in:
@ -40,7 +40,7 @@ YACReaderOptionsDialog::YACReaderOptionsDialog(QWidget *parent)
|
||||
connect(shortcutsButton, &QAbstractButton::clicked, this, &YACReaderOptionsDialog::editShortcuts);
|
||||
|
||||
connect(accept, &QAbstractButton::clicked, this, &YACReaderOptionsDialog::saveOptions);
|
||||
connect(cancel, SIGNAL(clicked()), this, SLOT(restoreOptions())); //TODO fix this
|
||||
connect(cancel, &QAbstractButton::clicked, this, QOverload<>::of(&YACReaderOptionsDialog::restoreOptions));
|
||||
connect(cancel, &QAbstractButton::clicked, this, &QWidget::close);
|
||||
#ifndef NO_OPENGL
|
||||
useGL = new QCheckBox(tr("Use hardware acceleration (restart needed)"));
|
||||
|
Reference in New Issue
Block a user