CTweakEditor: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-29 04:58:58 -04:00
parent e6cb5c3462
commit 781bbaef0e
1 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ CTweakEditor::CTweakEditor(QWidget* pParent)
AddUndoActions(mpUI->ToolBar); AddUndoActions(mpUI->ToolBar);
SET_WINDOWTITLE_APPVARS("%APP_FULL_NAME% - Tweak Editor[*]"); SET_WINDOWTITLE_APPVARS("%APP_FULL_NAME% - Tweak Editor[*]");
connect(mpUI->TweakTabs, SIGNAL(currentChanged(int)), this, SLOT(OnTweakTabClicked(int))); connect(mpUI->TweakTabs, &QTabBar::currentChanged, this, &CTweakEditor::OnTweakTabClicked);
connect(mpUI->ActionSave, SIGNAL(triggered(bool)), this, SLOT(Save())); connect(mpUI->ActionSave, &QAction::triggered, this, &CTweakEditor::Save);
connect(mpUI->ActionSaveAndRepack, SIGNAL(triggered(bool)), this, SLOT(SaveAndRepack())); connect(mpUI->ActionSaveAndRepack, &QAction::triggered, this, &CTweakEditor::SaveAndRepack);
} }
CTweakEditor::~CTweakEditor() = default; CTweakEditor::~CTweakEditor() = default;