KNewStuff

DialogContent.qml
1 /*
2  SPDX-FileCopyrightText: 2019 Dan Leinir Turthra Jensen <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
17 import QtQuick 2.11
18 import QtQuick.Layouts 1.11 as QtLayouts
19 
20 import org.kde.kirigami 2.7 as Kirigami
21 
22 import org.kde.newstuff 1.62 as NewStuff
23 
24 Kirigami.ApplicationItem {
25  id: component
26 
27  property alias downloadNewWhat: newStuffPage.title
31  property alias configFile: newStuffPage.configFile
32 
36  property alias engine: newStuffPage.engine
37 
43  property alias viewMode: newStuffPage.viewMode
44 
45  QtLayouts.Layout.preferredWidth: Kirigami.Units.gridUnit * 50
46  QtLayouts.Layout.preferredHeight: Kirigami.Units.gridUnit * 40
47  pageStack.defaultColumnWidth: pageStack.width
48  pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Auto
49  pageStack.initialPage: NewStuff.Page {
50  id: newStuffPage
51  function showMessage(message) {
52  // As the Page shows something nice and friendly while loading,
53  // there's no reason to do the passive notification thing for those.
54  if (!engine.isLoading) {
55  component.showPassiveNotification(message);
56  }
57  }
58  onMessage: component.showPassiveNotification(message);
59  onIdleMessage: component.showPassiveNotification(message);
60  }
61 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.