QML: Switch to Pane for sidebar tutorial
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
This commit is contained in:
parent
5e6b860531
commit
bc2d18b285
@ -5,16 +5,18 @@ Hello, in this chapter I will show you how to create a custom sidebar.
|
|||||||
## Create sidebar
|
## Create sidebar
|
||||||
|
|
||||||
```qml
|
```qml
|
||||||
Falkon.SideBar {
|
import QtQuick.Controls 2.3
|
||||||
|
|
||||||
|
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 */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Falkon.SideBar
|
### Falkon.SideBar
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user