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:
parent
20c281d6f8
commit
4a1d082614
2 changed files with 10 additions and 5 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue