LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
menumodeladapter.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include "guiconfig.h"
12#include <QList>
13
14class QAbstractItemModel;
15class QAction;
16class QModelIndex;
17class QMenu;
18
19namespace LC::Util
20{
25
26 UTIL_GUI_API void SetMenuModel (QMenu& menu,
27 QAbstractItemModel& model,
28 std::function<void (QModelIndex)> clickHandler,
29 MenuModelOptions options = {});
30}
#define UTIL_GUI_API
Definition guiconfig.h:16
void SetMenuModel(QMenu &menu, QAbstractItemModel &model, std::function< void(QModelIndex)> clickHandler, MenuModelOptions options)
QList< QAction * > AdditionalActions_