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 +++-- examples/triage/files.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') 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); } diff --git a/examples/triage/files.h b/examples/triage/files.h index 9874691c..e371d869 100644 --- a/examples/triage/files.h +++ b/examples/triage/files.h @@ -16,7 +16,7 @@ class TriageFilePicker: public QWidget UIContext* m_context; UIActionHandler m_actionHandler; Menu m_contextMenu; - ContextMenuManager m_contextMenuManager; + ContextMenuManager* m_contextMenuManager; QFileSystemModel* m_model; QTreeView* m_tree; -- cgit v1.3.1