Changeset View
Changeset View
Standalone View
Standalone View
src/datatypes/datatypes.cpp
- This file was copied to src/init.cpp, src/init.h.
Show All 9 Lines | 1 | /* | |||
---|---|---|---|---|---|
10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | 11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | ||
12 | License for more details. | 12 | License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #include "organization.h" | 18 | #include "datatypes.h" | ||
19 | #include "person.h" | | |||
20 | #include "place.h" | | |||
21 | | ||||
22 | #include <QCoreApplication> | | |||
23 | #include <QMetaType> | | |||
24 | | ||||
25 | using namespace KItinerary; | | |||
26 | | ||||
27 | struct StartupFunction { | | |||
28 | StartupFunction() | | |||
29 | { | | |||
30 | // add types here that are not covered by moc's auto-registration | | |||
31 | qRegisterMetaType<Airline>(); | | |||
32 | qRegisterMetaType<Airport>(); | | |||
33 | qRegisterMetaType<Person>(); | | |||
34 | qRegisterMetaType<Organization>(); | | |||
35 | qRegisterMetaType<TouristAttraction>(); | | |||
36 | qRegisterMetaType<TrainStation>(); | | |||
37 | } | | |||
38 | }; | | |||
39 | | ||||
40 | StartupFunction runOnce; | |