Refactoring.

Fix name of the signal according to code style.
This commit is contained in:
Roman Telezhynskyi 2023-10-23 18:16:01 +03:00
parent 5c1d8476ff
commit e56bd0792d
8 changed files with 8 additions and 8 deletions

View File

@ -435,7 +435,7 @@ VPMainWindow::VPMainWindow(const VPCommandLinePtr &cmd, QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(manager, &VAbstractShortcutManager::shortcutsUpdated, this, &VPMainWindow::UpdateShortcuts); connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &VPMainWindow::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }
} }

View File

@ -327,7 +327,7 @@ TMainWindow::TMainWindow(QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(manager, &VAbstractShortcutManager::shortcutsUpdated, this, &TMainWindow::UpdateShortcuts); connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &TMainWindow::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }
} }

View File

@ -115,7 +115,7 @@ DialogFinalMeasurements::DialogFinalMeasurements(VPattern *doc, QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::shortcutsUpdated, connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated,
this, &DialogFinalMeasurements::UpdateShortcuts); this, &DialogFinalMeasurements::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }

View File

@ -99,7 +99,7 @@ DialogHistory::DialogHistory(VContainer *data, VPattern *doc, QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::shortcutsUpdated, connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated,
this, &DialogHistory::UpdateShortcuts); this, &DialogHistory::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }

View File

@ -204,7 +204,7 @@ DialogIncrements::DialogIncrements(VContainer *data, VPattern *doc, QWidget *par
if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractApplication::VApp()->GetShortcutManager())
{ {
connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::shortcutsUpdated, connect(VAbstractValApplication::VApp()->GetShortcutManager(), &VAbstractShortcutManager::ShortcutsUpdated,
this, &DialogIncrements::UpdateShortcuts); this, &DialogIncrements::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }

View File

@ -538,7 +538,7 @@ MainWindow::MainWindow(QWidget *parent)
if (VAbstractShortcutManager *manager = VAbstractValApplication::VApp()->GetShortcutManager()) if (VAbstractShortcutManager *manager = VAbstractValApplication::VApp()->GetShortcutManager())
{ {
connect(manager, &VAbstractShortcutManager::shortcutsUpdated, this, &MainWindow::UpdateShortcuts); connect(manager, &VAbstractShortcutManager::ShortcutsUpdated, this, &MainWindow::UpdateShortcuts);
UpdateShortcuts(); UpdateShortcuts();
} }
} }

View File

@ -57,7 +57,7 @@ void VAbstractShortcutManager::UpdateShortcuts()
settings->GetActionShortcuts(ShortcutActionToString(shortcut.type), shortcut.defaultShortcuts); settings->GetActionShortcuts(ShortcutActionToString(shortcut.type), shortcut.defaultShortcuts);
} }
emit shortcutsUpdated(); emit ShortcutsUpdated();
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -123,7 +123,7 @@ public:
static auto StringListToKeySequenceList(const QStringList &stringList) -> QList<QKeySequence>; static auto StringListToKeySequenceList(const QStringList &stringList) -> QList<QKeySequence>;
signals: signals:
void shortcutsUpdated(); void ShortcutsUpdated();
protected: protected:
void AddShortcut(const VSShortcut &shortcut); void AddShortcut(const VSShortcut &shortcut);