From 8258ac5343540cd0abe3229ca6db9f6d7cea5ba1 Mon Sep 17 00:00:00 2001 From: FiniteSingularity Date: Tue, 20 Aug 2024 13:41:31 -0500 Subject: [PATCH] Fixes mac build. --- src/quick-access.cpp | 7 +++++-- src/quick-access.hpp | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/quick-access.cpp b/src/quick-access.cpp index 1a5e109..328387c 100644 --- a/src/quick-access.cpp +++ b/src/quick-access.cpp @@ -60,7 +60,10 @@ QuickAccessSourceList::QuickAccessSourceList(QWidget *parent, setDragDropMode(QAbstractItemView::InternalMove); setDefaultDropAction(Qt::TargetMoveAction); connect(this, &QListView::customContextMenuRequested, this, - [this](const QPoint &pos) { _displayContextMenu(pos); }); + [this](const QPoint &pos) { + UNUSED_PARAMETER(pos); + _displayContextMenu(); + }); //setAttribute(Qt::WA_TranslucentBackground); } @@ -107,7 +110,7 @@ QList QuickAccessSourceList::_getProjectorMenuMonitorsFormatted() return projectorsFormatted; } -void QuickAccessSourceList::_displayContextMenu(const QPoint &pos) +void QuickAccessSourceList::_displayContextMenu() { QMenu context(this); diff --git a/src/quick-access.hpp b/src/quick-access.hpp index 509c70f..f939012 100644 --- a/src/quick-access.hpp +++ b/src/quick-access.hpp @@ -45,7 +45,7 @@ class QuickAccessSourceList : public QListView { private: QuickAccess *_qaParent; - void _displayContextMenu(const QPoint &pos); + void _displayContextMenu(); QList _getProjectorMenuMonitorsFormatted(); SearchType _searchType; bool _activeSearch;