/
friendlyperch
/
QGrid
Обзор
Документация
Войти
/
friendlyperch
/
QGrid
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev-ver1
src/common/NullableBase.h
27 строк
550 B
okuntsev
move from github
13 янв 2026, 09:46
13 янв 2026, 09:46
fbdac0d
Код
Авторство
О чём код?
#ifndef NULLABLEBASE_H #define NULLABLEBASE_H #include <QObject> #include <QVariant> class NullableBase : public QObject { Q_OBJECT public: explicit NullableBase(QObject *parent = nullptr); NullableBase(const NullableBase &value); virtual bool hasValue() const; virtual QVariant getVariant() const; virtual void setVariant(const QVariant &value); NullableBase &operator=(const NullableBase &nullableBase); protected: bool isNull; QVariant value; }; Q_DECLARE_METATYPE(NullableBase) #endif // NULLABLEBASE_H