diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-09-20 12:48:13 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2017-09-21 15:05:39 +0300 |
commit | 35e4fe061d3db7cdb5852bafe290071e5f512e82 (patch) | |
tree | 70616738b939f3746155ca0671407b84aaa5dff3 /src/gui/settingsdialog.cpp | |
parent | 02924ad83e4a44c381f7c7d9ef1db981e4810d1d (diff) |
Port to new signal-slot syntax what cannot be done automatically
Some slot were protected or private but needed to be public.
Some needed a static_cast (can't use qOverload because it is in Qt 5.7)
This is not only a partial change.
Diffstat (limited to 'src/gui/settingsdialog.cpp')
-rw-r--r-- | src/gui/settingsdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index f67dcaca0..a266157db 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -93,7 +93,7 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) // People perceive this as a Window, so also make Ctrl+W work QAction *closeWindowAction = new QAction(this); closeWindowAction->setShortcut(QKeySequence("Ctrl+W")); - connect(closeWindowAction, SIGNAL(triggered()), SLOT(accept())); + connect(closeWindowAction, &QAction::triggered, this, &SettingsDialog::accept); addAction(closeWindowAction); setObjectName("Settings"); // required as group for saveGeometry call |