summaryrefslogtreecommitdiffhomepage
path: root/options/metatype.cpp
blob: 8f92f385dc36412423a426ee351fdc1b89055fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "slider.hpp"
#include "metatype.hpp"

#define OPENTRACK_REGISTER_METATYPE(t) ::options::detail::custom_type_initializer::declare_for_type<t>(#t)

namespace options {
namespace detail {

custom_type_initializer::custom_type_initializer()
{
    OPENTRACK_REGISTER_METATYPE(slider_value);
    OPENTRACK_REGISTER_METATYPE(QList<double>);
    OPENTRACK_REGISTER_METATYPE(QList<float>);
    OPENTRACK_REGISTER_METATYPE(QList<int>);
    OPENTRACK_REGISTER_METATYPE(QList<bool>);
    OPENTRACK_REGISTER_METATYPE(QList<QString>);
    OPENTRACK_REGISTER_METATYPE(QList<QPointF>);
}

const custom_type_initializer custom_type_initializer::singleton;

}
}