Kirigami2

RouterWindow.qml
1 /*
2  * SPDX-FileCopyrightText: 2020 Carson Black <[email protected]>
3  *
4  * SPDX-License-Identifier: LGPL-2.0-or-later
5  */
6 
7 import QtQuick 2.5
8 import org.kde.kirigami 2.12 as Kirigami
9 
10 //TODO KF6: this seems to have ended up barely used if at all. can be removed?
11 // Investigate why almost identical api is used a lot on different frameworks
12 // like Flutter but not in plamo apps.
13 
14 /**
15  * @brief An ApplicationWindow with a preconfigured PageRouter.
16  *
17  * In order to call functions on the PageRouter, use @link PageRouterAttached the attached Kirigami.PageRouter object @endlink.
18  *
19  * @warning This might be removed in KF6 due to not being used a lot.
20  * @inherit kirigami::ApplicationWindow
21  */
22 Kirigami.ApplicationWindow {
23  id: __kirigamiApplicationWindow
24 
25  /**
26  * @see kirigami::PageRouter::routes
27  * @property list<Kirigami.PageRoute> route
28  */
29  default property alias routes: __kirigamiPageRouter.routes
30 
31  /**
32  * @see kirigami::PageRouter::initialRoute
33  * @property string initialRoute
34  */
35  property alias initialRoute: __kirigamiPageRouter.initialRoute
36 
37  /**
38  * @brief This property holds this window's PageRouter.
39  * @property kirigami::PageRouter
40  */
41  property alias router: __kirigamiPageRouter
42 
43  Kirigami.PageRouter {
44  id: __kirigamiPageRouter
45  pageStack: __kirigamiApplicationWindow.pageStack.columnView
46  }
47 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:02:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.