From 62135f163f19d3362d0c95b5acd63837dab89a39 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 22 Jan 2021 20:54:32 -0500 Subject: Make status bar buttons full height + adjustable color --- examples/triage/files.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/triage/files.cpp') diff --git a/examples/triage/files.cpp b/examples/triage/files.cpp index ef640aa8..fcb71cd0 100644 --- a/examples/triage/files.cpp +++ b/examples/triage/files.cpp @@ -4,9 +4,10 @@ #include "files.h" -TriageFilePicker::TriageFilePicker(UIContext* context): m_contextMenuManager(this) +TriageFilePicker::TriageFilePicker(UIContext* context) { m_context = context; + m_contextMenuManager = new ContextMenuManager(this); m_actionHandler.setupActionHandler(this); QVBoxLayout* layout = new QVBoxLayout(); @@ -53,7 +54,7 @@ TriageFilePicker::TriageFilePicker(UIContext* context): m_contextMenuManager(thi void TriageFilePicker::contextMenuEvent(QContextMenuEvent*) { - m_contextMenuManager.show(&m_contextMenu, &m_actionHandler); + m_contextMenuManager->show(&m_contextMenu, &m_actionHandler); } -- cgit v1.3.1