Radium Engine  1.5.20
Loading...
Searching...
No Matches
QtTypeWrapper.hpp
1#pragma once
2
3#include <QDoubleSpinBox>
4#include <QSpinBox>
5
6namespace Ra {
7namespace Gui {
8namespace Widgets {
12namespace QtSpinBox {
13template <typename T>
14struct getType {
15 using Type = QSpinBox;
16 using SignalType = int;
17};
18
19template <>
20struct getType<float> {
21 using Type = QDoubleSpinBox;
22 using SignalType = double;
23};
24
25template <>
26struct getType<double> {
27 using Type = QDoubleSpinBox;
28 using SignalType = double;
29};
30
31} // namespace QtSpinBox
32
33} // namespace Widgets
34} // namespace Gui
35} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3