reafctor(WideBar): connect to signal instead of overriding menu method

This makes stuff more standard and closer to what we do in other places
in the codebase.

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-11-25 09:33:05 -03:00
parent 20c281d6f8
commit 4a1d082614
No known key found for this signature in database
GPG key ID: 8D0F221F0A59F469
2 changed files with 10 additions and 5 deletions

View file

@ -24,7 +24,7 @@ class WideBar : public QToolBar {
void insertActionAfter(QAction* after, QAction* action);
QMenu* createContextMenu(QWidget* parent = nullptr, const QString& title = QString());
void contextMenuEvent(QContextMenuEvent*) override;
void showVisibilityMenu(const QPoint&);
// Ideally we would use a QBitArray for this, but it doesn't support string conversion,
// so using it in settings is very messy.