Refactoring.
Fix name of the signal according to code style.
This commit is contained in:
parent
5c1d8476ff
commit
e56bd0792d
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user