mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
NLoader: renamed property panel => content so it looks more versatile
This commit is contained in:
+8
-5
@@ -1,19 +1,22 @@
|
||||
import QtQuick
|
||||
|
||||
// Example usage:
|
||||
// NLoader {
|
||||
// content: Component {
|
||||
// NPanel {
|
||||
|
||||
Loader {
|
||||
id: loader
|
||||
|
||||
// Boolean control to load/unload the item
|
||||
property bool isLoaded: false
|
||||
|
||||
// Provide the component to load.
|
||||
// Example usage:
|
||||
// content: Component { NPanel { /* ... */ } }
|
||||
property Component panel
|
||||
// Provide the component to be loaded.
|
||||
property Component content
|
||||
|
||||
active: isLoaded
|
||||
asynchronous: true
|
||||
sourceComponent: panel
|
||||
sourceComponent: content
|
||||
|
||||
onActiveChanged: {
|
||||
if (active && item && item.show)
|
||||
|
||||
Reference in New Issue
Block a user