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
```qml
import QtQuick.Controls 2.3
Falkon.SideBar {
name: 'qml-tutorial7-sidebar'
title: i18n('Tutorial 7 - QML SideBar')
icon: 'falkon'
checkable: false
shortcut: 'Ctrl+Shift+Alt+S'
Rectangle {
Pane {
/* Actual UI and some drawing logic */
}
}

View File

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