LeechCraft  0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
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 
14 class QAbstractItemModel;
15 class QAction;
16 class QModelIndex;
17 class QMenu;
18 
19 namespace LC::Util
20 {
22  {
24  };
25 
26  UTIL_GUI_API void SetMenuModel (QMenu& menu,
27  QAbstractItemModel& model,
28  std::function<void (QModelIndex)> clickHandler,
29  MenuModelOptions options = {});
30 }
QList< QAction * > AdditionalActions_
void SetMenuModel(QMenu &menu, QAbstractItemModel &model, std::function< void(QModelIndex)> clickHandler, MenuModelOptions options)
#define UTIL_GUI_API
Definition: guiconfig.h:16