From 56cd461ae667506dc55748c17c437974658b553c Mon Sep 17 00:00:00 2001 From: Gaurav Pruthi Date: Wed, 29 Sep 2021 19:57:56 +0530 Subject: [PATCH] Removed sortGroupRequested() as per review comments --- src/gui/group/GroupView.cpp | 9 ++------- src/gui/group/GroupView.h | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/gui/group/GroupView.cpp b/src/gui/group/GroupView.cpp index 2f308b854c..6024de5f10 100644 --- a/src/gui/group/GroupView.cpp +++ b/src/gui/group/GroupView.cpp @@ -47,10 +47,10 @@ GroupView::GroupView(Database* db, QWidget* parent) // keyboard shortcuts to sort children of a group auto shortcut = new QShortcut(Qt::CTRL + Qt::Key_Down, this); - connect(shortcut, &QShortcut::activated, this, [this]() { sortGroupRequested(false); }); + connect(shortcut, &QShortcut::activated, this, [this]() { sortGroups(false); }); shortcut = new QShortcut(Qt::CTRL + Qt::Key_Up, this); - connect(shortcut, &QShortcut::activated, this, [this]() { sortGroupRequested(true); }); + connect(shortcut, &QShortcut::activated, this, [this]() { sortGroups(true); }); modelReset(); @@ -75,11 +75,6 @@ void GroupView::contextMenuShortcutPressed() } } -void GroupView::sortGroupRequested(bool reverse) -{ - sortGroups(reverse); -} - void GroupView::changeDatabase(const QSharedPointer& newDb) { m_model->changeDatabase(newDb.data()); diff --git a/src/gui/group/GroupView.h b/src/gui/group/GroupView.h index 8af47e4ac4..aa4fd85de9 100644 --- a/src/gui/group/GroupView.h +++ b/src/gui/group/GroupView.h @@ -46,7 +46,6 @@ private slots: void syncExpandedState(const QModelIndex& parent, int start, int end); void modelReset(); void contextMenuShortcutPressed(); - void sortGroupRequested(bool reverse); protected: void dragMoveEvent(QDragMoveEvent* event) override;