About Dialog Box. More...
#include <qraboutdialog.h>
Public Types | |
enum | tLicense { License_Unknown, License_GPL } |
Public Member Functions | |
QRAboutDialog (const QString &name, const QString &version=QString::null, QWidget *parent=0) | |
void | setDescription (const QString &desc) |
void | setCopyright (const QString ©right) |
void | setURL (const QString &url) |
void | setLicense (tLicense license) |
void | addAuthor (const QString &name, const QString &role=QString::null, const QString &email=QString::null) |
void | exec (void) |
~QRAboutDialog (void) | |
Private Attributes | |
Ui_QRAboutDialog * | Ui |
QString | sDescription |
QString | sCopyright |
QString | sURL |
tLicense | License |
QList< QString > | sAuthors |
Detailed Description
About Dialog Box.
The QRAboutDialog provides a representation for a dialog box presenting "About information" for a given object (for example an application). It is inspired by the KAboutApplicationDialog of KDE.
Several information can be specified (description, an URL, a list of authors, etc.).
Here is an example of use :
Member Enumeration Documentation
enum tLicense |
Constructor & Destructor Documentation
QRAboutDialog | ( | const QString & | name, |
const QString & | version = QString::null , |
||
QWidget * | parent = 0 |
||
) |
Construct the about dialog box.
- Parameters
-
name Name of the object. version Version of the object. parent Parent widget.
~QRAboutDialog | ( | void | ) |
Destructor.
Member Function Documentation
void setDescription | ( | const QString & | desc | ) |
Set the description of the object.
- Parameters
-
desc Description.
void setCopyright | ( | const QString & | copyright | ) |
Set the copyright information of the object.
- Parameters
-
copyright Copyright information.
void setURL | ( | const QString & | url | ) |
Set the URL associated to the object.
- Parameters
-
url URL.
void setLicense | ( | tLicense | license | ) |
Set the type of license associated to the object.
- Parameters
-
license The license.
void addAuthor | ( | const QString & | name, |
const QString & | role = QString::null , |
||
const QString & | email = QString::null |
||
) |
Add an author of the object.
- Parameters
-
name Name of the author. role Role of the author. email E-mail of the author.
void exec | ( | void | ) |
Show the dialog box.
Field Documentation
|
private |
Main Widget.
|
private |
Description of the object.
|
private |
Copyright information.
|
private |
URL that can be associated.
|
private |
License associated.
|
private |
List of authors.