MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / DockedEditorComponentsFactory

Class DockedEditorComponentsFactory

src/DockedEditor.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class DockedEditorComponentsFactory : public ads::CDockComponentsFactory
34{
35public:
36 ads::CDockAreaTitleBar* createDockAreaTitleBar(ads::CDockAreaWidget* DockArea) const {
37 DockedEditorTitleBar *titleBar = new DockedEditorTitleBar(DockArea);
38
39 // Disable the built in context menu for the title bar since it has options we don't want
40 titleBar->setContextMenuPolicy(Qt::NoContextMenu);
41
42 return titleBar;
43 }
44};
45
46
47DockedEditor::DockedEditor(QWidget *parent) : QObject(parent)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected