Home
Phabricator
Search
Log In
Differential
D11076
Diff 29164
plugins/python/comics_project_management_tools/comics_project_page_viewer.py
Changeset View
It might be an idea to, instead of using seperate shortcuts and pushbuttons, make QActions, assign a shortcut to those, and then make a QToolbutton that the QAction becomes the default action off. OR, even simpler, make a QMenu or QToolbar where you just set the layoutDirection instead of making the long list of removes and adds.
https://doc.qt.io/qt-5/qaction.html#shortcut-prop
https://doc.qt.io/qt-5/qwidget.html#layoutDirection-prop
https://doc.qt.io/qt-5/qmenu.html