Skip to content

Commit

Permalink
allow keyboard activation of TableOfContents QDockWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Nov 27, 2023
1 parent 1a929c1 commit 46dbfa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MainUI/TableOfContents.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/************************************************************************
**
** Copyright (C) 2016-2020 Kevin B Hendricks, Stratford, Ontario Canada
** Copyright (C) 2016-2023 Kevin B Hendricks, Stratford, Ontario Canada
** Copyright (C) 2009-2011 Strahinja Markovic <[email protected]>
**
** This file is part of Sigil.
Expand Down Expand Up @@ -66,6 +66,7 @@ TableOfContents::TableOfContents(QWidget *parent)
m_RefreshTimer.setSingleShot(true);
SetupTreeView();
connect(m_TreeView, SIGNAL(clicked(const QModelIndex &)), this, SLOT(ItemClickedHandler(const QModelIndex &)));
connect(m_TreeView, SIGNAL(activated(const QModelIndex &)), this, SLOT(ItemClickedHandler(const QModelIndex &)));
connect(&m_RefreshTimer, SIGNAL(timeout()), this, SLOT(Refresh()));
connect(m_TOCModel, SIGNAL(RefreshDone()), m_TreeView, SLOT(expandAll()));
}
Expand Down

0 comments on commit 46dbfa3

Please sign in to comment.