From 3118996cfa611f9215cd02c92853895c79219329 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 29 Jun 2020 02:48:19 -0400 Subject: [PATCH] CScanEditor: Make use of Qt 5 signals and slots --- src/Editor/ScanEditor/CScanEditor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Editor/ScanEditor/CScanEditor.cpp b/src/Editor/ScanEditor/CScanEditor.cpp index f782b4a6..c0be73cb 100644 --- a/src/Editor/ScanEditor/CScanEditor.cpp +++ b/src/Editor/ScanEditor/CScanEditor.cpp @@ -12,11 +12,11 @@ CScanEditor::CScanEditor(CScan* pScan, QWidget* pParent) AddUndoActions(mpUI->ToolBar); QString WindowTitle = "%APP_FULL_NAME% - Scan Editor - %1[*]"; - WindowTitle = WindowTitle.arg( TO_QSTRING(mpScan->Entry()->CookedAssetPath(true).GetFileName()) ); + WindowTitle = WindowTitle.arg(TO_QSTRING(mpScan->Entry()->CookedAssetPath(true).GetFileName())); SET_WINDOWTITLE_APPVARS(WindowTitle); - connect( mpUI->ActionSave, SIGNAL(toggled(bool)), this, SLOT(Save()) ); - connect( mpUI->ActionSaveAndCook, SIGNAL(toggled(bool)), this, SLOT(SaveAndRepack()) ); + connect(mpUI->ActionSave, &QAction::toggled, this, &CScanEditor::Save); + connect(mpUI->ActionSaveAndCook, &QAction::toggled, this, &CScanEditor::SaveAndRepack); } CScanEditor::~CScanEditor() = default;