Skip to content

Conversation

@Roshni-P
Copy link

@Roshni-P Roshni-P commented Dec 6, 2024

The newly added Context Menu, will allow the user to open a new tab from the Docset.

@Roshni-P Roshni-P requested a review from trollixx as a code owner December 6, 2024 10:37
@Roshni-P Roshni-P changed the title Added Context Menu to Docsets - #1655 Dec 6, 2024
Copy link
Member

@trollixx trollixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having a menu with a single element is strange. Need to figure out more items to put there to justify adding it.


QSplitter *m_splitter = nullptr;
QTimer *m_delayedNavigationTimer = nullptr;
QMenu *m_contextMenu = nullptr;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to forward-declare QMenu. See lines 12-16 of this file.

#include <registry/listmodel.h>
#include <registry/searchmodel.h>
#include <registry/searchquery.h>
#include <ui/mainwindow.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be avoided. I'd rather have side bar emit signals that can be connected to in the main window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants