Commit acb1d24a authored by Vincent Pinon's avatar Vincent Pinon

Manually fix some old style connects

parent be2d8fe5
......@@ -45,7 +45,7 @@ public:
{
if (index.column() == 1) {
QSpinBox *spin = new QSpinBox(parent);
connect(spin, SIGNAL(valueChanged(int)), this, SLOT(commitEditorData()));
connect(spin, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &KeyItemDelegate::commitEditorData);
connect(spin, &QAbstractSpinBox::editingFinished, this, &KeyItemDelegate::commitAndCloseEditor);
return spin;
} else {
......
......@@ -79,7 +79,7 @@ KeyframeWidget::KeyframeWidget(std::shared_ptr<AssetParameterModel> model, QMode
curve->setCheckable(true);
m_selectType->addAction(curve);
m_selectType->setCurrentAction(linear);
connect(m_selectType, SIGNAL(triggered(QAction *)), this, SLOT(slotEditKeyframeType(QAction *)));
connect(m_selectType, static_cast<void(KSelectAction::*)(QAction*)>(&KSelectAction::triggered), this, &KeyframeWidget::slotEditKeyframeType);
m_selectType->setToolBarMode(KSelectAction::ComboBoxMode);
QToolBar *toolbar = new QToolBar(this);
......
......@@ -51,7 +51,7 @@ PositionEditWidget::PositionEditWidget(std::shared_ptr<AssetParameterModel> mode
m_slider->setValue(value);
m_display->setValue(value);
connect(m_slider, SIGNAL(valueChanged(int)), m_display, SLOT(setValue(int)));
connect(m_slider, &QAbstractSlider::valueChanged, m_display, static_cast<void (TimecodeDisplay::*)(int)>(&TimecodeDisplay::setValue));
connect(m_slider, &QAbstractSlider::valueChanged, this, &PositionEditWidget::valueChanged);
// emit the signal of the base class when appropriate
......
......@@ -597,8 +597,10 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent)
m_proxyModel->setSourceModel(m_itemModel.get());
connect(m_itemModel.get(), &QAbstractItemModel::dataChanged, m_proxyModel, &ProjectSortProxyModel::slotDataChanged);
connect(m_proxyModel, &ProjectSortProxyModel::selectModel, this, &Bin::selectProxyModel);
connect(m_itemModel.get(), SIGNAL(itemDropped(QStringList, QModelIndex)), this, SLOT(slotItemDropped(QStringList, QModelIndex)));
connect(m_itemModel.get(), SIGNAL(itemDropped(QList<QUrl>, QModelIndex)), this, SLOT(slotItemDropped(QList<QUrl>, QModelIndex)));
connect(m_itemModel.get(), static_cast<void(ProjectItemModel::*)(const QStringList&, const QModelIndex&)>(&ProjectItemModel::itemDropped),
this, static_cast<void (Bin::*)(const QStringList&, const QModelIndex&)>(&Bin::slotItemDropped));
connect(m_itemModel.get(), static_cast<void(ProjectItemModel::*)(const QList<QUrl>&, const QModelIndex&)>(&ProjectItemModel::itemDropped),
this, static_cast<void (Bin::*)(const QList<QUrl>&, const QModelIndex&)>(&Bin::slotItemDropped));
connect(m_itemModel.get(), &ProjectItemModel::effectDropped, this, &Bin::slotEffectDropped);
connect(m_itemModel.get(), &QAbstractItemModel::dataChanged, this, &Bin::slotItemEdited);
connect(this, &Bin::refreshPanel, this, &Bin::doRefreshPanel);
......@@ -651,7 +653,7 @@ Bin::Bin(const std::shared_ptr<ProjectItemModel> &model, QWidget *parent)
pCore->window()->actionCollection()->addAction(QStringLiteral("rename"), m_renameAction);
listType->setToolBarMode(KSelectAction::MenuMode);
connect(listType, SIGNAL(triggered(QAction *)), this, SLOT(slotInitView(QAction *)));
connect(listType, static_cast<void(KSelectAction::*)(QAction*)>(&KSelectAction::triggered), this, &Bin::slotInitView);
// Settings menu
QMenu *settingsMenu = new QMenu(i18n("Settings"), this);
......@@ -1729,7 +1731,7 @@ void Bin::showClipProperties(std::shared_ptr<ProjectClip> clip, bool forceRefres
connect(this, &Bin::refreshTimeCode, panel, &ClipPropertiesController::slotRefreshTimeCode);
connect(panel, &ClipPropertiesController::updateClipProperties, this,
&Bin::slotEditClipCommand);
connect(panel, SIGNAL(seekToFrame(int)), m_monitor, SLOT(slotSeek(int)));
connect(panel, &ClipPropertiesController::seekToFrame, m_monitor, static_cast<void(Monitor::*)(int)>(&Monitor::slotSeek));
connect(panel, &ClipPropertiesController::editClip, this, &Bin::slotEditClip);
connect(panel, SIGNAL(editAnalysis(QString, QString, QString)), this, SLOT(slotAddClipExtraData(QString, QString, QString)));
......
......@@ -47,7 +47,7 @@ EncodingProfilesDialog::EncodingProfilesDialog(int profileType, QWidget *parent)
m_configFile = new KConfig(QStringLiteral("encodingprofiles.rc"), KConfig::CascadeConfig, QStandardPaths::AppDataLocation);
profile_type->setCurrentIndex(profileType);
connect(profile_type, SIGNAL(currentIndexChanged(int)), this, SLOT(slotLoadProfiles()));
connect(profile_type, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &EncodingProfilesDialog::slotLoadProfiles);
connect(profile_list, &QListWidget::currentRowChanged, this, &EncodingProfilesDialog::slotShowParams);
connect(button_delete, &QAbstractButton::clicked, this, &EncodingProfilesDialog::slotDeleteProfile);
connect(button_add, &QAbstractButton::clicked, this, &EncodingProfilesDialog::slotAddProfile);
......
......@@ -146,8 +146,8 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
}
}
}
connect(m_configCapture.kcfg_detectedv4ldevices, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdatev4lDevice()));
connect(m_configCapture.kcfg_v4l_format, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdatev4lCaptureProfile()));
connect(m_configCapture.kcfg_detectedv4ldevices, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdatev4lDevice);
connect(m_configCapture.kcfg_v4l_format, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdatev4lCaptureProfile);
connect(m_configCapture.config_v4l, &QAbstractButton::clicked, this, &KdenliveSettingsDialog::slotEditVideo4LinuxProfile);
slotUpdatev4lDevice();
......@@ -236,10 +236,10 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
loadEncodingProfiles();
connect(m_configSdl.kcfg_audio_driver, SIGNAL(currentIndexChanged(int)), this, SLOT(slotCheckAlsaDriver()));
connect(m_configSdl.kcfg_audio_backend, SIGNAL(currentIndexChanged(int)), this, SLOT(slotCheckAudioBackend()));
connect(m_configSdl.kcfg_audio_driver, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotCheckAlsaDriver);
connect(m_configSdl.kcfg_audio_backend, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotCheckAudioBackend);
initDevices();
connect(m_configCapture.kcfg_grab_capture_type, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateGrabRegionStatus()));
connect(m_configCapture.kcfg_grab_capture_type, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdateGrabRegionStatus);
slotUpdateGrabRegionStatus();
loadTranscodeProfiles();
......@@ -261,7 +261,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
m_configCapture.decklink_parameters->setVisible(false);
m_configCapture.decklink_parameters->setMaximumHeight(QFontMetrics(font()).lineSpacing() * 4);
m_configCapture.decklink_parameters->setPlainText(KdenliveSettings::decklink_parameters());
connect(m_configCapture.kcfg_decklink_profile, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateDecklinkProfile()));
connect(m_configCapture.kcfg_decklink_profile, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdateDecklinkProfile);
connect(m_configCapture.decklink_showprofileinfo, &QAbstractButton::clicked, m_configCapture.decklink_parameters, &QWidget::setVisible);
// ffmpeg profile
......@@ -274,7 +274,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
act->setData(2);
connect(act, &QAction::triggered, this, &KdenliveSettingsDialog::slotManageEncodingProfile);
m_configCapture.v4l_manageprofile->setDefaultAction(act);
connect(m_configCapture.kcfg_v4l_profile, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateV4lProfile()));
connect(m_configCapture.kcfg_v4l_profile, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdateV4lProfile);
connect(m_configCapture.v4l_showprofileinfo, &QAbstractButton::clicked, m_configCapture.v4l_parameters, &QWidget::setVisible);
// screen grab profile
......@@ -286,7 +286,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
act->setData(3);
connect(act, &QAction::triggered, this, &KdenliveSettingsDialog::slotManageEncodingProfile);
m_configCapture.grab_manageprofile->setDefaultAction(act);
connect(m_configCapture.kcfg_grab_profile, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateGrabProfile()));
connect(m_configCapture.kcfg_grab_profile, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdateGrabProfile);
connect(m_configCapture.grab_showprofileinfo, &QAbstractButton::clicked, m_configCapture.grab_parameters, &QWidget::setVisible);
// Timeline preview
......@@ -294,7 +294,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
act->setData(1);
connect(act, &QAction::triggered, this, &KdenliveSettingsDialog::slotManageEncodingProfile);
m_configProject.preview_manageprofile->setDefaultAction(act);
connect(m_configProject.kcfg_preview_profile, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdatePreviewProfile()));
connect(m_configProject.kcfg_preview_profile, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdatePreviewProfile);
connect(m_configProject.preview_showprofileinfo, &QAbstractButton::clicked, m_configProject.previewparams, &QWidget::setVisible);
m_configProject.previewparams->setVisible(false);
m_configProject.previewparams->setMaximumHeight(QFontMetrics(font()).lineSpacing() * 3);
......@@ -321,7 +321,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap<QString, QString> &map
m_configProject.proxy_manageprofile->setDefaultAction(act);
connect(m_configProject.proxy_showprofileinfo, &QAbstractButton::clicked, m_configProject.proxyparams, &QWidget::setVisible);
connect(m_configProject.kcfg_proxy_profile, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateProxyProfile()));
connect(m_configProject.kcfg_proxy_profile, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &KdenliveSettingsDialog::slotUpdateProxyProfile);
slotUpdateProxyProfile(-1);
slotUpdateV4lProfile(-1);
......
......@@ -67,7 +67,7 @@ MarkerDialog::MarkerDialog(ClipController *clip, const CommentedTime &t, const T
case ClipType::SlideShow:
case ClipType::Playlist:
m_previewTimer->start();
connect(this, SIGNAL(updateThumb()), m_previewTimer, SLOT(start()));
connect(this, &MarkerDialog::updateThumb, m_previewTimer, static_cast<void(QTimer::*)()>(&QTimer::start));
break;
case ClipType::Image:
case ClipType::Text:
......
......@@ -77,15 +77,15 @@ ProfilesDialog::ProfilesDialog(const QString &profileDescription, QWidget *paren
connect(m_view.button_default, &QAbstractButton::clicked, this, &ProfilesDialog::slotSetDefaultProfile);
connect(m_view.description, &QLineEdit::textChanged, this, &ProfilesDialog::slotProfileEdited);
connect(m_view.frame_num, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.frame_den, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.aspect_num, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.aspect_den, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.display_num, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.display_den, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.frame_num, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.frame_den, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.aspect_num, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.aspect_den, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.display_num, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.display_den, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.progressive, &QCheckBox::stateChanged, this, &ProfilesDialog::slotProfileEdited);
connect(m_view.size_h, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.size_w, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.size_h, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.size_w, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.size_w, &QAbstractSpinBox::editingFinished, this, &ProfilesDialog::slotAdjustWidth);
m_view.size_w->setSingleStep(8);
}
......@@ -127,15 +127,15 @@ ProfilesDialog::ProfilesDialog(const QString &profilePath, bool, QWidget *parent
connect(m_view.button_save, &QAbstractButton::clicked, this, &ProfilesDialog::slotSaveProfile);
connect(m_view.description, &QLineEdit::textChanged, this, &ProfilesDialog::slotProfileEdited);
connect(m_view.frame_num, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.frame_den, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.aspect_num, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.aspect_den, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.display_num, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.display_den, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.frame_num, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.frame_den, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.aspect_num, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.aspect_den, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.display_num, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.display_den, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.progressive, &QCheckBox::stateChanged, this, &ProfilesDialog::slotProfileEdited);
connect(m_view.size_h, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.size_w, SIGNAL(valueChanged(int)), this, SLOT(slotProfileEdited()));
connect(m_view.size_h, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.size_w, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ProfilesDialog::slotProfileEdited);
connect(m_view.size_w, &QAbstractSpinBox::editingFinished, this, &ProfilesDialog::slotAdjustWidth);
m_view.size_w->setSingleStep(8);
}
......
......@@ -211,7 +211,7 @@ RenderWidget::RenderWidget(const QString &projectfolder, bool enableProxy, QWidg
m_view.audio->setVisible(m_view.options->isChecked());
connect(m_view.options, &QAbstractButton::toggled, m_view.audio, &QWidget::setVisible);
connect(m_view.quality, &QAbstractSlider::valueChanged, this, &RenderWidget::adjustAVQualities);
connect(m_view.video, SIGNAL(valueChanged(int)), this, SLOT(adjustQuality(int)));
connect(m_view.video, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &RenderWidget::adjustQuality);
connect(m_view.speed, &QAbstractSlider::valueChanged, this, &RenderWidget::adjustSpeed);
m_view.buttonRender->setEnabled(false);
......@@ -243,11 +243,11 @@ RenderWidget::RenderWidget(const QString &projectfolder, bool enableProxy, QWidg
m_view.encoder_threads->setMaximum(QThread::idealThreadCount());
m_view.encoder_threads->setToolTip(i18n("Encoding threads (0 is automatic)"));
m_view.encoder_threads->setValue(KdenliveSettings::encodethreads());
connect(m_view.encoder_threads, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateEncodeThreads(int)));
connect(m_view.encoder_threads, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &RenderWidget::slotUpdateEncodeThreads);
m_view.rescale_keep->setChecked(KdenliveSettings::rescalekeepratio());
connect(m_view.rescale_width, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateRescaleWidth(int)));
connect(m_view.rescale_height, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateRescaleHeight(int)));
connect(m_view.rescale_width, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &RenderWidget::slotUpdateRescaleWidth);
connect(m_view.rescale_height, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &RenderWidget::slotUpdateRescaleHeight);
m_view.rescale_keep->setIcon(KoIconUtils::themedIcon(QStringLiteral("edit-link")));
m_view.rescale_keep->setToolTip(i18n("Preserve aspect ratio"));
connect(m_view.rescale_keep, &QAbstractButton::clicked, this, &RenderWidget::slotSwitchAspectRatio);
......
......@@ -64,7 +64,7 @@ TitleTemplateDialog::TitleTemplateDialog(const QString &folder, QWidget *parent)
}
const QStringList mimeTypeFilters = {QStringLiteral("application/x-kdenlivetitle")};
m_view.template_list->setFilter(mimeTypeFilters.join(' '));
connect(m_view.template_list->comboBox(), SIGNAL(currentIndexChanged(int)), this, SLOT(updatePreview()));
connect(m_view.template_list->comboBox(), static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &TitleTemplateDialog::updatePreview);
updatePreview();
}
......
......@@ -27,7 +27,7 @@ DvdWizardChapters::DvdWizardChapters(MonitorManager *manager, DVDFORMAT format,
{
m_view.setupUi(this);
connect(m_view.vob_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateChaptersList()));
connect(m_view.vob_list, static_cast<void(KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &DvdWizardChapters::slotUpdateChaptersList);
connect(m_view.button_add, &QAbstractButton::clicked, this, &DvdWizardChapters::slotAddChapter);
connect(m_view.button_delete, &QAbstractButton::clicked, this, &DvdWizardChapters::slotRemoveChapter);
connect(m_view.chapters_list, &QListWidget::itemSelectionChanged, this, &DvdWizardChapters::slotGoToChapter);
......
......@@ -234,7 +234,7 @@ DvdWizardMenu::DvdWizardMenu(DVDFORMAT format, QWidget *parent)
connect(m_view.play_text, &QLineEdit::textChanged, this, &DvdWizardMenu::buildButton);
connect(m_view.text_color, SIGNAL(changed(QColor)), this, SLOT(updateColor()));
connect(m_view.font_size, SIGNAL(valueChanged(int)), this, SLOT(buildButton()));
connect(m_view.font_size, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &DvdWizardMenu::buildButton);
connect(m_view.font_family, &QFontComboBox::currentFontChanged, this, &DvdWizardMenu::buildButton);
connect(m_view.background_image, &KUrlRequester::textChanged, this, &DvdWizardMenu::buildImage);
connect(m_view.background_color, &KColorButton::changed, this, &DvdWizardMenu::buildColor);
......
......@@ -37,7 +37,7 @@ LayoutManagement::LayoutManagement(QObject *parent)
}
// Required to enable user to add the load layout action to toolbar
layoutActions->addAction(QStringLiteral("load_layouts"), m_loadLayout);
connect(m_loadLayout, SIGNAL(triggered(QAction *)), SLOT(slotLoadLayout(QAction *)));
connect(m_loadLayout, static_cast<void(KSelectAction::*)(QAction*)>(&KSelectAction::triggered), this, &LayoutManagement::slotLoadLayout);
connect(pCore->window(), &MainWindow::GUISetupDone, this, &LayoutManagement::slotOnGUISetupDone);
}
......
......@@ -958,7 +958,7 @@ void MainWindow::setupActions()
sceneMode->addAction(m_overwriteEditTool);
sceneMode->addAction(m_insertEditTool);
sceneMode->setCurrentItem(0);
connect(sceneMode, SIGNAL(triggered(QAction *)), this, SLOT(slotChangeEdit(QAction *)));
connect(sceneMode, static_cast<void(KSelectAction::*)(QAction*)>(&KSelectAction::triggered), this, &MainWindow::slotChangeEdit);
addAction(QStringLiteral("timeline_mode"), sceneMode);
KDualAction *ac = new KDualAction(i18n("Don't Use Timeline Zone for Insert"), i18n("Use Timeline Zone for Insert"), this);
......@@ -996,7 +996,7 @@ void MainWindow::setupActions()
m_compositeAction->setCurrentAction(previewComposite);
}
}
connect(m_compositeAction, SIGNAL(triggered(QAction *)), this, SLOT(slotUpdateCompositing(QAction *)));
connect(m_compositeAction, static_cast<void(KSelectAction::*)(QAction*)>(&KSelectAction::triggered), this, &MainWindow::slotUpdateCompositing);
addAction(QStringLiteral("timeline_compositing"), m_compositeAction);
m_timeFormatButton = new KSelectAction(QStringLiteral("00:00:00:00 / 00:00:00:00"), this);
......@@ -1008,7 +1008,8 @@ void MainWindow::setupActions()
} else {
m_timeFormatButton->setCurrentItem(0);
}
connect(m_timeFormatButton, SIGNAL(triggered(int)), this, SLOT(slotUpdateTimecodeFormat(int)));
connect(m_timeFormatButton, static_cast<void(KSelectAction::*)(int)>(&KSelectAction::triggered),
this, &MainWindow::slotUpdateTimecodeFormat);
m_timeFormatButton->setToolBarMode(KSelectAction::MenuMode);
m_timeFormatButton->setToolButtonPopupMode(QToolButton::InstantPopup);
addAction(QStringLiteral("timeline_timecode"), m_timeFormatButton);
......@@ -1293,7 +1294,7 @@ void MainWindow::setupActions()
monitorGamma->addAction(i18n("Rec. 709 (TV)"));
addAction(QStringLiteral("mlt_gamma"), monitorGamma);
monitorGamma->setCurrentItem(KdenliveSettings::monitor_gamma());
connect(monitorGamma, SIGNAL(triggered(int)), this, SLOT(slotSetMonitorGamma(int)));
connect(monitorGamma, static_cast<void(KSelectAction::*)(int)>(&KSelectAction::triggered), this, &MainWindow::slotSetMonitorGamma);
addAction(QStringLiteral("switch_trim"), i18n("Trim Mode"), this, SLOT(slotSwitchTrimMode()), KoIconUtils::themedIcon(QStringLiteral("cursor-arrow")));
// disable shortcut until fully working, Qt::CTRL + Qt::Key_T);
......
......@@ -345,8 +345,8 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
spin1->setValue(force_ar_num);
spin2->setValue(force_ar_den);
}
connect(spin2, SIGNAL(valueChanged(int)), this, SLOT(slotAspectValueChanged(int)));
connect(spin1, SIGNAL(valueChanged(int)), this, SLOT(slotAspectValueChanged(int)));
connect(spin2, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ClipPropertiesController::slotAspectValueChanged);
connect(spin1, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ClipPropertiesController::slotAspectValueChanged);
connect(box, &QAbstractButton::toggled, spin1, &QWidget::setEnabled);
connect(box, &QAbstractButton::toggled, spin2, &QWidget::setEnabled);
vbox->addLayout(hlay);
......@@ -446,7 +446,8 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
} else {
spinI->setValue(1);
}
connect(spinI, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int)));
connect(spinI, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
this, static_cast<void (ClipPropertiesController::*)(int)>(&ClipPropertiesController::slotValueChanged));
hlay->addWidget(spinI);
vbox->addLayout(hlay);
......@@ -463,7 +464,8 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
} else {
spinI->setValue(vix.toInt());
}
connect(spinI, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int)));
connect(spinI, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
this, static_cast<void (ClipPropertiesController::*)(int)>(&ClipPropertiesController::slotValueChanged));
hlay->addWidget(spinI);
vbox->addLayout(hlay);
......@@ -480,7 +482,8 @@ ClipPropertiesController::ClipPropertiesController(ClipController *controller, Q
} else {
spinI->setValue(aix.toInt());
}
connect(spinI, SIGNAL(valueChanged(int)), this, SLOT(slotValueChanged(int)));
connect(spinI, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged),
this, static_cast<void (ClipPropertiesController::*)(int)>(&ClipPropertiesController::slotValueChanged));
hlay->addWidget(spinI);
vbox->addLayout(hlay);
......
......@@ -261,7 +261,7 @@ Monitor::Monitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *paren
freeAction->setData(0);
m_configMenu->addAction(m_forceSize);
m_forceSize->setCurrentAction(freeAction);
connect(m_forceSize, SIGNAL(triggered(QAction *)), this, SLOT(slotForceSize(QAction *)));
connect(m_forceSize, static_cast<void(KSelectAction::*)(QAction*)>(&KSelectAction::triggered), this, &Monitor::slotForceSize);
}
// Create Volume slider popup
......
......@@ -149,13 +149,13 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
title_duration->setText(m_tc.reformatSeparators(KdenliveSettings::title_duration()));
connect(backgroundColor, &KColorButton::changed, this, &TitleWidget::slotChangeBackground);
connect(backgroundAlpha, SIGNAL(valueChanged(int)), this, SLOT(slotChangeBackground()));
connect(backgroundAlpha, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotChangeBackground);
connect(shadowBox, &QGroupBox::toggled, this, &TitleWidget::slotUpdateShadow);
connect(shadowColor, &KColorButton::changed, this, &TitleWidget::slotUpdateShadow);
connect(blur_radius, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateShadow()));
connect(shadowX, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateShadow()));
connect(shadowY, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateShadow()));
connect(blur_radius, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateShadow);
connect(shadowX, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateShadow);
connect(shadowY, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateShadow);
connect(fontColorButton, &KColorButton::changed, this, &TitleWidget::slotUpdateText);
connect(plain_color, &QAbstractButton::clicked, this, &TitleWidget::slotUpdateText);
......@@ -164,10 +164,10 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
connect(textOutlineColor, &KColorButton::changed, this, &TitleWidget::slotUpdateText);
connect(font_family, &QFontComboBox::currentFontChanged, this, &TitleWidget::slotUpdateText);
connect(font_size, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateText()));
connect(letter_spacing, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateText()));
connect(line_spacing, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateText()));
connect(textOutline, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateText()));
connect(font_size, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateText);
connect(letter_spacing, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateText);
connect(line_spacing, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateText);
connect(textOutline, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateText);
connect(font_weight_box, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateText()));
connect(rectFColor, &KColorButton::changed, this, &TitleWidget::rectChanged);
......@@ -175,13 +175,13 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
connect(plain_rect, &QAbstractButton::clicked, this, &TitleWidget::rectChanged);
connect(gradient_rect, &QAbstractButton::clicked, this, &TitleWidget::rectChanged);
connect(gradients_rect_combo, SIGNAL(currentIndexChanged(int)), this, SLOT(rectChanged()));
connect(rectLineWidth, SIGNAL(valueChanged(int)), this, SLOT(rectChanged()));
connect(rectLineWidth, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::rectChanged);
connect(zValue, SIGNAL(valueChanged(int)), this, SLOT(zIndexChanged(int)));
connect(itemzoom, SIGNAL(valueChanged(int)), this, SLOT(itemScaled(int)));
connect(itemrotatex, SIGNAL(valueChanged(int)), this, SLOT(itemRotateX(int)));
connect(itemrotatey, SIGNAL(valueChanged(int)), this, SLOT(itemRotateY(int)));
connect(itemrotatez, SIGNAL(valueChanged(int)), this, SLOT(itemRotateZ(int)));
connect(zValue, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::zIndexChanged);
connect(itemzoom, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::itemScaled);
connect(itemrotatex, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::itemRotateX);
connect(itemrotatey, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::itemRotateY);
connect(itemrotatez, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::itemRotateZ);
connect(itemhcenter, &QAbstractButton::clicked, this, &TitleWidget::itemHCenter);
connect(itemvcenter, &QAbstractButton::clicked, this, &TitleWidget::itemVCenter);
connect(itemtop, &QAbstractButton::clicked, this, &TitleWidget::itemTop);
......@@ -189,8 +189,8 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
connect(itemleft, &QAbstractButton::clicked, this, &TitleWidget::itemLeft);
connect(itemright, &QAbstractButton::clicked, this, &TitleWidget::itemRight);
connect(effect_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotAddEffect(int)));
connect(typewriter_delay, SIGNAL(valueChanged(int)), this, SLOT(slotEditTypewriter(int)));
connect(typewriter_start, SIGNAL(valueChanged(int)), this, SLOT(slotEditTypewriter(int)));
connect(typewriter_delay, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotEditTypewriter);
connect(typewriter_start, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotEditTypewriter);
connect(origin_x_left, &QAbstractButton::clicked, this, &TitleWidget::slotOriginXClicked);
connect(origin_y_top, &QAbstractButton::clicked, this, &TitleWidget::slotOriginYClicked);
......@@ -203,10 +203,10 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
m_signalMapper->setMapping(value_h, ValueHeight);
m_signalMapper->setMapping(value_x, ValueX);
m_signalMapper->setMapping(value_y, ValueY);
connect(value_w, SIGNAL(valueChanged(int)), m_signalMapper, SLOT(map()));
connect(value_h, SIGNAL(valueChanged(int)), m_signalMapper, SLOT(map()));
connect(value_x, SIGNAL(valueChanged(int)), m_signalMapper, SLOT(map()));
connect(value_y, SIGNAL(valueChanged(int)), m_signalMapper, SLOT(map()));
connect(value_w, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), m_signalMapper, static_cast<void (QSignalMapper::*)()>(&QSignalMapper::map));
connect(value_h, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), m_signalMapper, static_cast<void (QSignalMapper::*)()>(&QSignalMapper::map));
connect(value_x, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), m_signalMapper, static_cast<void (QSignalMapper::*)()>(&QSignalMapper::map));
connect(value_y, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), m_signalMapper, static_cast<void (QSignalMapper::*)()>(&QSignalMapper::map));
connect(m_signalMapper, SIGNAL(mapped(int)), this, SLOT(slotValueChanged(int)));
connect(buttonFitZoom, &QAbstractButton::clicked, this, &TitleWidget::slotAdjustZoom);
......@@ -419,7 +419,7 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
graphicsView->setRubberBandSelectionMode(Qt::ContainsItemBoundingRect);
m_titledocument.setScene(m_scene, m_frameWidth, m_frameHeight);
connect(m_scene, &QGraphicsScene::changed, this, &TitleWidget::slotChanged);
connect(font_size, SIGNAL(valueChanged(int)), m_scene, SLOT(slotUpdateFontSize(int)));
connect(font_size, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), m_scene, &GraphicsSceneRectMove::slotUpdateFontSize);
connect(use_grid, &QAbstractButton::toggled, m_scene, &GraphicsSceneRectMove::slotUseGrid);
// Video frame rect
......@@ -468,7 +468,7 @@ TitleWidget::TitleWidget(const QUrl &url, const Timecode &tc, const QString &pro
connect(m_scene, &GraphicsSceneRectMove::newRect, this, &TitleWidget::slotNewRect);
connect(m_scene, &GraphicsSceneRectMove::newText, this, &TitleWidget::slotNewText);
connect(zoom_slider, &QAbstractSlider::valueChanged, this, &TitleWidget::slotUpdateZoom);
connect(zoom_spin, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateZoom(int)));
connect(zoom_spin, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &TitleWidget::slotUpdateZoom);
// mbd: load saved settings
loadGradients();
......
......@@ -169,7 +169,7 @@
</spacer>
</item>
<item row="2" column="3" colspan="3">
<widget class="QComboBox" name="kcfg_audio_backend"/>
<widget class="KComboBox" name="kcfg_audio_backend"/>
</item>
</layout>
</widget>
......
......@@ -88,7 +88,7 @@ ResourceWidget::ResourceWidget(const QString &folder, QWidget *parent)
connect(m_networkManager, &QNetworkConfigurationManager::onlineStateChanged, this, &ResourceWidget::slotOnlineChanged);
connect(page_next, &QAbstractButton::clicked, this, &ResourceWidget::slotNextPage);
connect(page_prev, &QAbstractButton::clicked, this, &ResourceWidget::slotPreviousPage);
connect(page_number, SIGNAL(valueChanged(int)), this, SLOT(slotStartSearch(int)));
connect(page_number, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &ResourceWidget::slotStartSearch);
connect(info_browser, &QTextBrowser::anchorClicked, this, &ResourceWidget::slotOpenLink);
m_networkAccessManager = new QNetworkAccessManager(this);
......
......@@ -77,7 +77,8 @@ DragValue::DragValue(const QString &label, double defaultValue, int decimals, do
m_intEdit->setRange((int)m_minimum, (int)m_maximum);
m_intEdit->setValue((int)m_default);
l->addWidget(m_intEdit);
connect(m_intEdit, SIGNAL(valueChanged(int)), this, SLOT(slotSetValue(int)));
connect(m_intEdit, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged),
this, static_cast<void(DragValue::*)(int)>(&DragValue::slotSetValue));
connect(m_intEdit, &QAbstractSpinBox::editingFinished, this, &DragValue::slotEditingFinished);
} else {
m_doubleEdit = new QDoubleSpinBox(this);
......@@ -137,7 +138,7 @@ DragValue::DragValue(const QString &label, double defaultValue, int decimals, do
m_menu->addAction(timeline);
}
connect(this, &QWidget::customContextMenuRequested, this, &DragValue::slotShowContextMenu);
connect(m_scale, SIGNAL(triggered(int)), this, SLOT(slotSetScaleMode(int)));
connect(m_scale, static_cast<void(KSelectAction::*)(int)>(&KSelectAction::triggered), this, &DragValue::slotSetScaleMode);
connect(m_directUpdate, &QAction::triggered, this, &DragValue::slotSetDirectUpdate);
}
......
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