LibrePCB Developers Documentation
Loading...
Searching...
No Matches
qtmetatyperegistration.h
Go to the documentation of this file.
1
/*
2
* LibrePCB - Professional EDA for everyone!
3
* Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4
* https://librepcb.org/
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef LIBREPCB_CORE_QTMETATYPEREGISTRATION_H
21
#define LIBREPCB_CORE_QTMETATYPEREGISTRATION_H
22
23
/*******************************************************************************
24
* Includes
25
******************************************************************************/
26
#include <QtCore>
27
28
/*******************************************************************************
29
* Namespace / Forward Declarations
30
******************************************************************************/
31
namespace
librepcb
{
32
33
/*******************************************************************************
34
* Class QtMetaTypeRegistration
35
******************************************************************************/
36
40
template
<
typename
T>
41
struct
QtMetaTypeRegistration
final {
42
inline
QtMetaTypeRegistration
() noexcept { qRegisterMetaType<T>(); }
43
};
44
45
/*******************************************************************************
46
* End of File
47
******************************************************************************/
48
49
}
// namespace librepcb
50
51
#endif
librepcb
Definition
occmodel.cpp:76
librepcb::QtMetaTypeRegistration
Wrapper around qRegisterMetaType<T> to allow static registration.
Definition
qtmetatyperegistration.h:41
librepcb::QtMetaTypeRegistration::QtMetaTypeRegistration
QtMetaTypeRegistration() noexcept
Definition
qtmetatyperegistration.h:42
libs
librepcb
core
utils
qtmetatyperegistration.h
Generated on Wed Dec 18 2024 20:12:47 for LibrePCB Developers Documentation by
1.9.8