1

QML: Switch to Pane for sidebar tutorial

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
Juraj Oravec 2022-07-14 11:00:31 +02:00
parent 5e6b860531
commit bc2d18b285
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B
2 changed files with 13 additions and 10 deletions

View File

@ -5,13 +5,15 @@ Hello, in this chapter I will show you how to create a custom sidebar.
## Create sidebar ## Create sidebar
```qml ```qml
import QtQuick.Controls 2.3
Falkon.SideBar { Falkon.SideBar {
name: 'qml-tutorial7-sidebar' name: 'qml-tutorial7-sidebar'
title: i18n('Tutorial 7 - QML SideBar') title: i18n('Tutorial 7 - QML SideBar')
icon: 'falkon' icon: 'falkon'
checkable: false checkable: false
shortcut: 'Ctrl+Shift+Alt+S' shortcut: 'Ctrl+Shift+Alt+S'
Rectangle { Pane {
/* Actual UI and some drawing logic */ /* Actual UI and some drawing logic */
} }
} }

View File

@ -23,7 +23,8 @@ Falkon.PluginInterface {
icon: 'falkon' icon: 'falkon'
checkable: true checkable: true
shortcut: 'Ctrl+Shift+Alt+S' shortcut: 'Ctrl+Shift+Alt+S'
Rectangle {
Pane {
Image { Image {
source: 'qrc:/icons/other/startpage.svg' source: 'qrc:/icons/other/startpage.svg'
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter