kdeui Library API Documentation

KBugReport Class Reference

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

#include <kbugreport.h>

Inheritance diagram for KBugReport:

KDialogBase KDialog QDialog List of all members.

Public Methods

 KBugReport (QWidget *parent=0L, bool modal=true, const KAboutData *aboutData=0L)
 Creates a bug-report dialog.

virtual ~KBugReport ()
 Destructor.


Protected Slots

virtual void slotConfigureEmail ()
 "Configure email" has been clicked - this calls kcmshell System/email

virtual void slotSetFrom ()
 Sets the "From" field from the e-mail configuration Called at creation time, but also after "Configure email" is closed.

virtual void slotUrlClicked (const QString &)
 The URL-Label "http://bugs.kde.org/" was clicked.

virtual void slotOk (void)
 OK has been clicked.

virtual void slotCancel ()
 Cancel has been clicked.


Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

A dialog box for sending bug reports. 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 42 of file kbugreport.h.


Constructor & Destructor Documentation

KBugReport::KBugReport QWidget   parent = 0L,
bool    modal = true,
const KAboutData   aboutData = 0L
 

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 66 of file kbugreport.cpp.

References KInstance::aboutData(), QWhatsThis::add(), QGridLayout::addMultiCellWidget(), QGridLayout::addWidget(), KAboutData::appName(), KAboutData::bugAddress(), QString::fromLatin1(), KGlobal::instance(), KStdAccel::label(), KDialogBase::plainPage(), QLabel::setBuddy(), KDialogBase::setButtonCancelText(), KDialogBase::setButtonOKText(), QRadioButton::setChecked(), QGridLayout::setColStretch(), QLabel::setText(), KURLLabel::setURL(), KDialogBase::showButtonOK(), slotConfigureEmail(), slotSetFrom(), slotUrlClicked(), KDialog::spacingHint(), and KAboutData::version().

KBugReport::~KBugReport   [virtual]
 

Destructor.

Definition at line 304 of file kbugreport.cpp.


Member Function Documentation

void KBugReport::slotConfigureEmail   [protected, virtual, slot]
 

"Configure email" has been clicked - this calls kcmshell System/email

Definition at line 337 of file kbugreport.cpp.

References QString::fromLatin1(), slotSetFrom(), and KProcess::start().

Referenced by KBugReport().

void KBugReport::slotSetFrom   [protected, virtual, slot]
 

Sets the "From" field from the e-mail configuration Called at creation time, but also after "Configure email" is closed.

Definition at line 353 of file kbugreport.cpp.

References QString::fromLatin1(), QString::isEmpty(), and QLabel::setText().

Referenced by KBugReport(), and slotConfigureEmail().

void KBugReport::slotUrlClicked const QString   [protected, virtual, slot]
 

The URL-Label "http://bugs.kde.org/" was clicked.

Definition at line 382 of file kbugreport.cpp.

References KDialogBase::slotCancel().

Referenced by KBugReport().

void KBugReport::slotOk void    [protected, virtual, slot]
 

OK has been clicked.

Reimplemented from KDialogBase.

Definition at line 394 of file kbugreport.cpp.

References QDialog::accept(), KMessageBox::error(), KMessageBox::information(), KMessageBox::questionYesNo(), and QLineEdit::text().

void KBugReport::slotCancel   [protected, virtual, slot]
 

Cancel has been clicked.

Reimplemented from KDialogBase.

Definition at line 448 of file kbugreport.cpp.

References QLineEdit::edited(), QMultiLineEdit::edited(), KDialogBase::slotCancel(), and KMessageBox::warningYesNo().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:03 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001