Skip to content

Commit

Permalink
Removed sortGroupRequested() as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Pruthi committed Sep 29, 2021
1 parent d807872 commit 56cd461
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/gui/group/GroupView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -75,11 +75,6 @@ void GroupView::contextMenuShortcutPressed()
}
}

void GroupView::sortGroupRequested(bool reverse)
{
sortGroups(reverse);
}

void GroupView::changeDatabase(const QSharedPointer<Database>& newDb)
{
m_model->changeDatabase(newDb.data());
Expand Down
1 change: 0 additions & 1 deletion src/gui/group/GroupView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 56cd461

Please sign in to comment.