• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KBugReport Class Reference

A dialog box for sending bug reports. More...

#include <kbugreport.h>

Inheritance diagram for KBugReport:
KDialog QDialog

List of all members.

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.

Author:
David Faure <faure@kde.org>

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:
  • kbugreport.h
  • kbugreport.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal