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