org::kde::newstuff::NewStuffList
org::kde::newstuff::NewStuffList Class Reference
Inherits ListView.
Properties | |
alias | configFile |
Signals | |
void | busyMessage (string message) |
void | downloadedItemClicked (variant installedFiles) |
void | errorMessage (string message) |
void | idleMessage (string message) |
void | message (string message) |
Detailed Description
To use NewStuffList, simply instantiate it and pass the local file location of a knsrc file to the configFile property.
- Since
- 1.0 The components will, in this case, take care of the rest for you. If you want more, you can look at what NewStuffItem does with the various bits, and be inspired by that.
An (overly simple) example which might be used for managing wallpapers and just outputting any messages onto the console can be seen below. Note that you should obviously not be using hardcoded paths, it is done here to get the idea across.
NewStuff.NewStuffList {
configFile: "/some/filesystem/location/wallpaper.knsrc";
onMessage: console.log("KNS Message: " + message);
onIdleMessage: console.log("KNS Idle: " + message);
onBusyMessage: console.log("KNS Busy: " + message);
onErrorMessage: console.log("KNS Error: " + message);
}
Definition at line 34 of file NewStuffList.qml.
Property Documentation
alias org::kde::newstuff::NewStuffList::configFile |
The configuration file which describes the application (knsrc)
The format and location of this file is found in the documentation for KNS3::DownloadDialog
Definition at line 42 of file NewStuffList.qml.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:41:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:41:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.