summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-01-22 20:54:32 -0500
committerGlenn Smith <glenn@vector35.com>2021-04-02 16:16:47 -0400
commit62135f163f19d3362d0c95b5acd63837dab89a39 (patch)
tree4eaf32135412409c1a2ddb7fa30e010f31a87cfa /examples
parent5080deaf69b1a3b3c3a09b63e82f3310ce02cb5c (diff)
Make status bar buttons full height + adjustable color
Diffstat (limited to 'examples')
-rw-r--r--examples/triage/files.cpp5
-rw-r--r--examples/triage/files.h2
2 files changed, 4 insertions, 3 deletions
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;