KNSWidgets::Action Class
class KNSWidgets::ActionQAction subclass that encapsulates the logic for showing the KNewStuff dialog. More...
| Header: | #include <Action> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS NewStuff)target_link_libraries(mytarget PRIVATE KF6::NewStuff) |
Public Functions
| Action(const QString &text, const QString &configFile, QObject *parent) |
Signals
| void | dialogFinished(const QList<KNSCore::Entry> &changedEntries) |
Detailed Description
If KNewStuff is disabled using KAuthorized, the action is hidden.
See also KAuthorized::GenericRestriction::GHNS.
Member Function Documentation
[explicit] Action::Action(const QString &text, const QString &configFile, QObject *parent)
Constructs a KNSWidgets::Action instance.
text describing what is being downloaded. It should be a text beginning with "Download New ..." for consistency
configFile the name of the .knsrc file
parent the parent object
[signal] void Action::dialogFinished(const QList<KNSCore::Entry> &changedEntries)
Emitted when the dialog has been closed.
changedEntries contains the entries that were changed