This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.7 | |
import QtQuick.Controls 2.0 | |
import QtQuick.Window 2.2 | |
ApplicationWindow { | |
visible: true | |
width: 640 | |
height: 480 | |
title: "Bootstrap test : " + ["xs", "sm", "md", "lg"][thresholdIndex(this)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
SequentialAnimation { | |
id: root | |
property QtObject target | |
property string fadeProperty: "scale" | |
property int fadeDuration: 150 | |
property alias outValue: outAnimation.to | |
property alias inValue: inAnimation.to | |
property alias outEasingType: outAnimation.easing.type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.6 | |
import QtQuick.Layouts 1.0 | |
import Qt.labs.controls 1.0 | |
import QtQuick.Layouts 1.3 | |
import MouseProxy 0.1 | |
ApplicationWindow { | |
visible: true | |
width: 640 | |
height: 480 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "colattachedtype.h" | |
#include <QQuickItem> | |
#include <QQuickWindow> | |
#include <QQmlInfo> | |
ColAttachedType::ColAttachedType(QObject* parent) : | |
QObject{parent}, | |
m_item{qobject_cast<QQuickItem*>(parent)} | |
{ | |
if (!m_item) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick.Controls 2.0 | |
import QtQuick 2.7 | |
import QtQml 2.2 | |
ScrollBar { | |
id: scrollBar | |
property ListView listView: parent | |
stepSize: 1 / listView.count | |
property real effectiveStep: stepSize * (1 - 0) | |
size: listView.visibleArea.heightRatio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <typename T> | |
class LambdaAndroidActivityResultReceiver : public QObject, public QAndroidActivityResultReceiver | |
{ | |
public: | |
LambdaAndroidActivityResultReceiver(T callback) : m_callback{callback} {} | |
void handleActivityResult(int receiverRequestCode, int resultCode, const QAndroidJniObject &data) override { | |
Q_UNUSED(receiverRequestCode) | |
m_callback(resultCode, data); | |
deleteLater(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.7 | |
Rectangle { | |
property alias textItem: textItem | |
property alias text: textItem.text | |
property alias textColor: textItem.color | |
property alias maxWidth: textItem.width | |
property alias maxHeight: textItem.height |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
SequentialAnimation { | |
id: root | |
property QtObject target | |
property string fadeProperty: "opacity" | |
property int fadeDuration: 150 | |
property alias outValue: outAnimation.to | |
property alias inValue: inAnimation.to | |
property alias outEasingType: outAnimation.easing.type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.7 | |
Item { | |
id: root | |
property Flickable flickable: parent | |
anchors.fill: parent | |
property MouseArea mouseArea | |
readonly property bool active: flickable && (mouseArea ? mouseArea.drag.active : false) |