KDEUI
KBugReport Class Reference
A dialog box for sending bug reports. More...
#include <kbugreport.h>

Public Member Functions | |
virtual void | accept () |
KBugReport (QWidget *parent=0L, bool modal=true, const KAboutData *aboutData=0L) | |
QString | messageBody () const |
void | setMessageBody (const QString &messageBody) |
virtual | ~KBugReport () |
Protected Member Functions | |
virtual void | closeEvent (QCloseEvent *e) |
bool | sendBugReport () |
QString | text () const |
Detailed Description
A dialog box for sending bug reports.
All the information needed by the dialog box (program name, version, bug-report address, etc.) comes from the KAboutData class. Make sure you create an instance of KAboutData and pass it to KCmdLineArgs.
Definition at line 38 of file kbugreport.h.
Constructor & Destructor Documentation
KBugReport::KBugReport | ( | QWidget * | parent = 0L , |
|
bool | modal = true , |
|||
const KAboutData * | aboutData = 0L | |||
) | [explicit] |
Creates a bug-report dialog.
Note that you shouldn't have to do this manually, since KHelpMenu takes care of the menu item for "Report Bug..." and of creating a KBugReport dialog.
Definition at line 89 of file kbugreport.cpp.
KBugReport::~KBugReport | ( | ) | [virtual] |
Destructor.
Definition at line 302 of file kbugreport.cpp.
Member Function Documentation
void KBugReport::accept | ( | ) | [virtual] |
OK has been clicked.
Definition at line 398 of file kbugreport.cpp.
void KBugReport::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
Detects when a dialog is being closed from the window manager controls.
If the Cancel or Close button is present then the button is activated. Otherwise standard QDialog behavior will take place.
Reimplemented from KDialog.
Definition at line 455 of file kbugreport.cpp.
QString KBugReport::messageBody | ( | ) | const |
The message body of the bug report.
- Returns:
- The message body of the bug report.
Definition at line 307 of file kbugreport.cpp.
bool KBugReport::sendBugReport | ( | ) | [protected] |
Attempt to e-mail the bug report.
- Returns:
- true on success
Definition at line 515 of file kbugreport.cpp.
void KBugReport::setMessageBody | ( | const QString & | messageBody | ) |
Sets the message body of the bug report.
Definition at line 315 of file kbugreport.cpp.
QString KBugReport::text | ( | ) | const [protected] |
"Configure email" has been clicked - this calls kcmshell4 System/email
Sets the "From" field from the e-mail configuration Called at creation time, but also after "Configure email" is closed. Application combo selection changed (and was activated) Update the url to match the current os, compiler, selected app, etc A complete copy of the bug report
- Returns:
- QString copy of the bug report.
Definition at line 472 of file kbugreport.cpp.
The documentation for this class was generated from the following files: