4#ifndef QQMLDOMFUNCTIONREF_P_H
5#define QQMLDOMFUNCTIONREF_P_H
18#include <QtCore/private/qglobal_p.h>
20#if !defined(Q_CC_MSVC) || Q_CC_MSVC >= 1930
21#include <QtCore/qxpfunctional.h>
41struct function_ref_helper {
using type = std::function<T>; };
43template <
typename R,
typename...Args>
44struct function_ref_helper<
R(Args...) const> : function_ref_helper<R(Args...)> {};
46template <
typename R,
typename...Args>
47struct function_ref_helper<
R(Args...) noexcept> : function_ref_helper<R(Args...)> {};
49template <
typename R,
typename...Args>
50struct function_ref_helper<
R(Args...) const noexcept> : function_ref_helper<R(Args...)> {};
53using function_ref =
const typename _detail::function_ref_helper<T>::type &;
qxp::function_ref< T > function_ref
Combined button and popup list for selecting options.