diff --git a/AppLink.qml b/AppLink.qml new file mode 100644 index 0000000..4620b73 --- /dev/null +++ b/AppLink.qml @@ -0,0 +1,15 @@ +import QtQuick +import QtQuick.Controls.Basic + +Text { + font.underline: true + color: "blue" + + signal clicked() + + MouseArea { + id: mouseArea + anchors.fill: parent + onClicked: parent.clicked() + } +} diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d01978..c4ca762 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ set(plain_qml_files AppComboBox.qml AppTextField.qml AppImage.qml + AppLink.qml ) set(qml_singletons Fonts.qml diff --git a/gallery/Main.qml b/gallery/Main.qml index 1e691f0..45f5098 100644 --- a/gallery/Main.qml +++ b/gallery/Main.qml @@ -106,6 +106,13 @@ AppWindow { placeholderText: qsTr("Enter name") } + AppLink { + text: "flowy.live" + onClicked: { + Qt.openUrlExternally("https://flowy.live") + } + } + AppImage { source: "https://storage.googleapis.com/flowy-assets/keypad/jr-korpa-9XngoIpxcEo-unsplash.jpg" fillMode: Image.PreserveAspectCrop