Skip to content

Commit

Permalink
Fixes mac build.
Browse files Browse the repository at this point in the history
  • Loading branch information
FiniteSingularity committed Aug 20, 2024
1 parent 62ee6fc commit 8258ac5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/quick-access.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -107,7 +110,7 @@ QList<QString> QuickAccessSourceList::_getProjectorMenuMonitorsFormatted()
return projectorsFormatted;
}

void QuickAccessSourceList::_displayContextMenu(const QPoint &pos)
void QuickAccessSourceList::_displayContextMenu()
{
QMenu context(this);

Expand Down
2 changes: 1 addition & 1 deletion src/quick-access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class QuickAccessSourceList : public QListView {

private:
QuickAccess *_qaParent;
void _displayContextMenu(const QPoint &pos);
void _displayContextMenu();
QList<QString> _getProjectorMenuMonitorsFormatted();
SearchType _searchType;
bool _activeSearch;
Expand Down

0 comments on commit 8258ac5

Please sign in to comment.