| 1 | /* |
| 2 | * Copyright 2016 Canonical Ltd. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Lesser General Public License as published by |
| 6 | * the Free Software Foundation; version 3. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | * |
| 16 | * Author: Zsombor Egri <[email protected]> |
| 17 | */ |
| 18 | |
| 19 | #include <QtQml/QtQml> |
| 20 | #include <QtQml/QQmlEngine> |
| 21 | |
| 22 | #include "lomirigesturesmodule.h" |
| 23 | #include "ucswipearea_p.h" |
| 24 | |
| 25 | UG_NAMESPACE_BEGIN |
| 26 | |
| 27 | void LomiriGesturesModule::defineModule(const char *uri) |
| 28 | { |
| 29 | #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) |
| 30 | qmlRegisterType<UCSwipeArea>(uri, 1, 3, "SwipeArea"); |
| 31 | #else |
| 32 | qmlRegisterType<UCSwipeArea>(uri, 2, 0, "SwipeArea"); |
| 33 | #endif |
| 34 | } |
| 35 | |
| 36 | void LomiriGesturesModule::undefineModule() |
| 37 | { |
| 38 | // nothing so far |
| 39 | } |
| 40 | |
| 41 | UG_NAMESPACE_END |