4#ifndef QQMLNULLABLEVALUE_P_H
5#define QQMLNULLABLEVALUE_P_H
18#include <QtCore/private/qglobal_p.h>
29 , m_isNull(
o.m_isNull)
33 : m_value(std::move(
o.value))
34 , m_isNull(std::exchange(
o.m_isNull,
true))
43 : m_value(std::move(
t))
47 QQmlNullableValue<T> &
operator=(
const QQmlNullableValue<T> &
o)
51 m_isNull =
o.m_isNull;
56 QQmlNullableValue<T> &
operator=(QQmlNullableValue<T> &&
o)
noexcept
59 m_value = std::move(
o.m_value);
60 m_isNull = std::exchange(
o.m_isNull,
true);
74 m_value = std::move(
t);
79 const T &
value()
const {
return m_value; }
80 operator T()
const {
return m_value; }
83 bool isValid()
const {
return !m_isNull; }
Combined button and popup list for selecting options.
QQmlNullableValue< T > & operator=(T &&t) noexcept
QQmlNullableValue< T > & operator=(const QQmlNullableValue< T > &o)
QQmlNullableValue< T > & operator=(QQmlNullableValue< T > &&o) noexcept
QQmlNullableValue(const QQmlNullableValue< T > &o)
QQmlNullableValue(const T &t)
QQmlNullableValue()=default
QQmlNullableValue< T > & operator=(const T &t)
QQmlNullableValue(T &&t) noexcept
QQmlNullableValue(QQmlNullableValue< T > &&o) noexcept