KNSWidgets::Button Class
QPushButton subclass that encapsulates the logic for showing the KNewStuff dialog. More...
- Header:
#include <Button> - CMake:
find_package(KF6 REQUIRED COMPONENTS NewStuff)
target_link_libraries(mytarget PRIVATE KF6::NewStuff) - Inherits: QPushButton
List of all members, including inherited members
Public Functions
- Button(QWidget *parent)
- Button(const QString &text, const QString &configFile, QWidget *parent)
- void setConfigFile(const QString &configFile)
Signals
Detailed Description
If KNewStuff is disabled using KAuthorized, the button is hidden.
See also KAuthorized::GenericRestriction::GHNS
Member Function Documentation
[explicit] Button::Button(QWidget *parent)
Constructor used when the code is generated from a .ui file After the UI is set up, you must call setConfigFile(QString)
[explicit] Button::Button(const QString &text, const QString &configFile, QWidget *parent)
Constructor used when the details of the KHotNewStuff download is known when the button is created.
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 widget
[signal] void Button::dialogFinished(const QList<KNSCore::Entry> &changedEntries)
Emitted when the dialog has been closed.
changedEntries contains the entries that were changed
void Button::setConfigFile(const QString &configFile)
Note: This should only be used when creating the button from a UI-file.