\section{KBug\-Report Class Reference}
\label{classKBugReport}\index{KBugReport@{KBugReport}}
A dialog box for sending bug reports. A dialog box for sending bug reports.  


{\tt \#include $<$kbugreport.h$>$}

Inheritance diagram for KBug\-Report:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKBugReport__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KBug\-Report:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=267pt]{classKBugReport__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KBug\-Report} ({\bf QWidget} $\ast$parent=0L, bool modal=true, const  {\bf KAbout\-Data} $\ast$about\-Data=0L)
\begin{CompactList}\small\item\em Creates a bug-report dialog. \item\end{CompactList}\item 
virtual {\bf $\sim$KBug\-Report} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Configure\-Email} ()
\begin{CompactList}\small\item\em \char`\"{}Configure email\char`\"{} has been clicked - this calls kcmshell System/email \item\end{CompactList}\item 
virtual void {\bf slot\-Set\-From} ()
\begin{CompactList}\small\item\em Sets the \char`\"{}From\char`\"{} field from the e-mail configuration Called at creation time, but also after \char`\"{}Configure email\char`\"{} is closed. \item\end{CompactList}\item 
virtual void {\bf slot\-Url\-Clicked} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em The URL-Label \char`\"{}http://bugs.kde.org/\char`\"{} was clicked. \item\end{CompactList}\item 
virtual void {\bf slot\-Ok} (void)
\begin{CompactList}\small\item\em OK has been clicked. \item\end{CompactList}\item 
virtual void {\bf slot\-Cancel} ()
\begin{CompactList}\small\item\em Cancel has been clicked. \item\end{CompactList}\item 
void {\bf app\-Changed} (int)\label{classKBugReport_j5}

\item 
void {\bf update\-URL} ()\label{classKBugReport_j6}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf text} () const \label{classKBugReport_b0}

\item 
bool {\bf send\-Bug\-Report} ()\label{classKBugReport_b1}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKBugReport_b2}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KProcess} $\ast$ {\bf m\_\-process}\label{classKBugReport_p0}

\item 
const  {\bf KAbout\-Data} $\ast$ {\bf m\_\-about\-Data}\label{classKBugReport_p1}

\item 
{\bf QMulti\-Line\-Edit} $\ast$ {\bf m\_\-lineedit}\label{classKBugReport_p2}

\item 
{\bf QLine\-Edit} $\ast$ {\bf m\_\-subject}\label{classKBugReport_p3}

\item 
{\bf QLabel} $\ast$ {\bf m\_\-from}\label{classKBugReport_p4}

\item 
{\bf QLabel} $\ast$ {\bf m\_\-version}\label{classKBugReport_p5}

\item 
{\bf QString} {\bf m\_\-str\-Version}\label{classKBugReport_p6}

\item 
{\bf QHButton\-Group} $\ast$ {\bf m\_\-bg\-Severity}\label{classKBugReport_p7}

\item 
{\bf QPush\-Button} $\ast$ {\bf m\_\-configure\-Email}\label{classKBugReport_p8}

\end{CompactItemize}


\subsection{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 {\bf KAbout\-Data} class. Make sure you create an instance of {\bf KAbout\-Data} and pass it to {\bf KCmd\-Line\-Args}.

\begin{Desc}
\item[Author:]David Faure $<${\tt faure@kde.org}$>$ \end{Desc}




Definition at line 42 of file kbugreport.h.

\subsection{Constructor \& Destructor Documentation}
\index{KBugReport@{KBug\-Report}!KBugReport@{KBugReport}}
\index{KBugReport@{KBugReport}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBug\-Report::KBug\-Report ({\bf QWidget} $\ast$ {\em parent} = 0L, bool {\em modal} = true, const {\bf KAbout\-Data} $\ast$ {\em about\-Data} = 0L)}\label{classKBugReport_a0}


Creates a bug-report dialog. 

Note that you shouldn't have to do this manually, since {\bf KHelp\-Menu}{\rm (p.\,\pageref{classKHelpMenu})} takes care of the menu item for \char`\"{}Report Bug...\char`\"{} and of creating a KBug\-Report dialog. 

Definition at line 66 of file kbugreport.cpp.

References KGlobal::\_\-active\-Instance, KInstance::about\-Data(), QWhats\-This::add(), QGrid\-Layout::add\-Multi\-Cell\-Widget(), QGrid\-Layout::add\-Widget(), KAbout\-Data::app\-Name(), KAbout\-Data::bug\-Address(), QString::from\-Latin1(), KGlobal::instance(), KStd\-Accel::label(), KDialog\-Base::plain\-Page(), QLabel::set\-Buddy(), KDialog\-Base::set\-Button\-Cancel\-Text(), KDialog\-Base::set\-Button\-OKText(), QRadio\-Button::set\-Checked(), QGrid\-Layout::set\-Col\-Stretch(), KDialog\-Base::show\-Button\-OK(), slot\-Configure\-Email(), slot\-Set\-From(), slot\-Url\-Clicked(), KDialog::spacing\-Hint(), and KAbout\-Data::version().\index{KBugReport@{KBug\-Report}!~KBugReport@{$\sim$KBugReport}}
\index{~KBugReport@{$\sim$KBugReport}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBug\-Report::$\sim${\bf KBug\-Report} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKBugReport_a1}


Destructor. 



Definition at line 282 of file kbugreport.cpp.

\subsection{Member Function Documentation}
\index{KBugReport@{KBug\-Report}!slotConfigureEmail@{slotConfigureEmail}}
\index{slotConfigureEmail@{slotConfigureEmail}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Configure\-Email ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j0}


\char`\"{}Configure email\char`\"{} has been clicked - this calls kcmshell System/email 



Definition at line 315 of file kbugreport.cpp.

References QString::from\-Latin1(), slot\-Set\-From(), and KProcess::start().

Referenced by KBug\-Report().\index{KBugReport@{KBug\-Report}!slotSetFrom@{slotSetFrom}}
\index{slotSetFrom@{slotSetFrom}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Set\-From ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j1}


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



Definition at line 331 of file kbugreport.cpp.

References QString::from\-Latin1(), QString::is\-Empty(), KStd\-Accel::name(), KConfig\-Base::read\-Entry(), KConfig\-Base::set\-Group(), and QLabel::set\-Text().

Referenced by KBug\-Report(), and slot\-Configure\-Email().\index{KBugReport@{KBug\-Report}!slotUrlClicked@{slotUrlClicked}}
\index{slotUrlClicked@{slotUrlClicked}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Url\-Clicked (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j2}


The URL-Label \char`\"{}http://bugs.kde.org/\char`\"{} was clicked. 



Definition at line 360 of file kbugreport.cpp.

References KDialog\-Base::slot\-Cancel().

Referenced by KBug\-Report().\index{KBugReport@{KBug\-Report}!slotOk@{slotOk}}
\index{slotOk@{slotOk}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Ok (void)\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j3}


OK has been clicked. 



Reimplemented from {\bf KDialog\-Base} {\rm (p.\,\pageref{classKDialogBase_j6})}.

Definition at line 372 of file kbugreport.cpp.

References QDialog::accept(), KMessage\-Box::error(), KMessage\-Box::information(), KMessage\-Box::question\-Yes\-No(), and QLine\-Edit::text().\index{KBugReport@{KBug\-Report}!slotCancel@{slotCancel}}
\index{slotCancel@{slotCancel}!KBugReport@{KBug\-Report}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBug\-Report::slot\-Cancel ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKBugReport_j4}


Cancel has been clicked. 



Reimplemented from {\bf KDialog\-Base} {\rm (p.\,\pageref{classKDialogBase_j11})}.

Definition at line 426 of file kbugreport.cpp.

References QMulti\-Line\-Edit::edited(), KDialog\-Base::slot\-Cancel(), and KMessage\-Box::warning\-Yes\-No().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kbugreport.h\item 
kbugreport.cpp\end{CompactItemize}
