summaryrefslogtreecommitdiffstats
path: root/src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-12-14 17:26:37 +0100
committerJ-P Nurmi <jpnurmi@qt.io>2016-12-14 16:27:29 +0000
commitde589d6d365160d3678d78e955d022a3153b1f28 (patch)
tree7c69daf358754c2bf89f3b552fef693e2a8a8fa4 /src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h
parent440131ba451c62b4dfa4c1d362a36eff5643fc0d (diff)
Restructure
Change-Id: I63af251b05686f78daf441b1ed7a999bf6685bf6 Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h')
-rw-r--r--src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h b/src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h
new file mode 100644
index 0000000..54816f4
--- /dev/null
+++ b/src/android/support/v4/widget/qqmlandroiddrawerlayoutparams_p.h
@@ -0,0 +1,79 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the Qt QML Android module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later as published by the Free
+** Software Foundation and appearing in the file LICENSE.GPL included in
+** the packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QQMLANDROIDDRAWERLAYOUTPARAMS_P_H
+#define QQMLANDROIDDRAWERLAYOUTPARAMS_P_H
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the Qt API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+//
+
+#include <QtQmlAndroid/private/qqmlandroidmarginlayoutparams_p.h>
+
+QT_BEGIN_NAMESPACE
+
+class Q_QMLANDROID_EXPORT QQmlAndroidDrawerLayoutParams : public QQmlAndroidMarginLayoutParams
+{
+ Q_OBJECT
+ Q_PROPERTY(int gravity READ gravity WRITE setGravity NOTIFY gravityChanged) // TODO Gravity
+
+public:
+ explicit QQmlAndroidDrawerLayoutParams(QQmlAndroidView *view);
+
+ int gravity() const;
+ void setGravity(int gravity);
+
+Q_SIGNALS:
+ void gravityChanged();
+
+protected:
+ QAndroidJniObject onCreate() override;
+ void onInflate(QAndroidJniObject &instance) override;
+
+private:
+ int m_gravity;
+};
+
+QT_END_NAMESPACE
+
+#endif // QQMLANDROIDDRAWERLAYOUTPARAMS_P_H