KNewStuff
KNS3::Button Class Reference
KHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating most of the details involved in using KHotNewStuff in the button itself. More...
#include <knewstuffbutton.h>

Signals | |
| void | aboutToShowDialog () |
| void | dialogFinished (const KNS3::Entry::List &changedEntries) |
Public Member Functions | |
| Button (const QString &text, const QString &configFile, QWidget *parent) | |
| Button (QWidget *parent) | |
| ~Button () | |
| void | setButtonText (const QString &text) |
| void | setConfigFile (const QString &configFile) |
Protected Slots | |
| void | showDialog () |
Detailed Description
KHotNewStuff push button that makes using KHNS in an application more convenient by encapsulating most of the details involved in using KHotNewStuff in the button itself.
- Since:
- 4.4
Definition at line 37 of file knewstuff3/knewstuffbutton.h.
Constructor & Destructor Documentation
Constructor used when the details of the KHotNewStuff download is known when the button is created.
- Parameters:
-
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
Definition at line 34 of file knewstuff3/knewstuffbutton.cpp.
| KNS3::Button::Button | ( | QWidget * | parent | ) |
Constructor used when the details of the KHotNewStuff download is not known in advance of the button being created.
- Parameters:
-
parent the parent widget
Definition at line 45 of file knewstuff3/knewstuffbutton.cpp.
| KNS3::Button::~Button | ( | ) |
Definition at line 53 of file knewstuff3/knewstuffbutton.cpp.
Member Function Documentation
| void KNS3::Button::aboutToShowDialog | ( | ) | [signal] |
emitted when the Hot New Stuff dialog is about to be shown, usually as a result of the user having click on the button
| void KNS3::Button::dialogFinished | ( | const KNS3::Entry::List & | changedEntries | ) | [signal] |
emitted when the Hot New Stuff dialog has been closed
| void KNS3::Button::setButtonText | ( | const QString & | text | ) |
set the text that should appear on the button.
will be prefaced with i18n("Download New")
Definition at line 64 of file knewstuff3/knewstuffbutton.cpp.
| void KNS3::Button::setConfigFile | ( | const QString & | configFile | ) |
set the name of the .knsrc file to use
Definition at line 69 of file knewstuff3/knewstuffbutton.cpp.
| void KNS3::Button::showDialog | ( | ) | [protected, slot] |
Definition at line 74 of file knewstuff3/knewstuffbutton.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference