\section{KPassive\-Popup Class Reference}
\label{classKPassivePopup}\index{KPassivePopup@{KPassivePopup}}
A dialog-like popup that displays messages without interupting the user.  


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

Inheritance diagram for KPassive\-Popup:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKPassivePopup__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPassive\-Popup:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=220pt]{classKPassivePopup__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Timeout} (int delay)
\begin{CompactList}\small\item\em Sets the delay for the popup is removed automatically. \item\end{CompactList}\item 
virtual void {\bf show} ()
\begin{CompactList}\small\item\em Reimplemented to reposition the popup. \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf clicked} ()
\begin{CompactList}\small\item\em Emitted when the popup is clicked. \item\end{CompactList}\item 
void {\bf clicked} ({\bf QPoint} pos)
\begin{CompactList}\small\item\em Emitted when the popup is clicked. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPassive\-Popup} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0, WFlags f=0)
\begin{CompactList}\small\item\em Creates a popup for the specified widget. \item\end{CompactList}\item 
{\bf KPassive\-Popup} (WId parent, const  char $\ast$name=0, WFlags f=0)
\begin{CompactList}\small\item\em Creates a popup for the specified window. \item\end{CompactList}\item 
virtual {\bf $\sim$KPassive\-Popup} ()
\begin{CompactList}\small\item\em Cleans up. \item\end{CompactList}\item 
void {\bf set\-View} ({\bf QWidget} $\ast$child)
\begin{CompactList}\small\item\em Sets the main view to be the specified widget (which must be a child of the popup). \item\end{CompactList}\item 
void {\bf set\-View} (const  {\bf QString} \&caption, const  {\bf QString} \&text=QString::null)
\begin{CompactList}\small\item\em Creates a standard view then calls {\bf set\-View}{\rm (p.\,\pageref{classKPassivePopup_a3})}(QWidget$\ast$) . \item\end{CompactList}\item 
virtual void {\bf set\-View} (const  {\bf QString} \&caption, const  {\bf QString} \&text, const  {\bf QPixmap} \&icon)
\begin{CompactList}\small\item\em Creates a standard view then calls {\bf set\-View}{\rm (p.\,\pageref{classKPassivePopup_a3})}(QWidget$\ast$) . \item\end{CompactList}\item 
{\bf QVBox} $\ast$ {\bf standard\-View} (const  {\bf QString} \&caption, const  {\bf QString} \&text, const  {\bf QPixmap} \&icon, {\bf QWidget} $\ast$parent=0L)
\begin{CompactList}\small\item\em Returns a widget that is used as standard view if one of the {\bf set\-View()}{\rm (p.\,\pageref{classKPassivePopup_a3})} methods taking the {\bf QString} arguments is used. \item\end{CompactList}\item 
{\bf QWidget} $\ast$ {\bf view} () const 
\begin{CompactList}\small\item\em Returns the main view. \item\end{CompactList}\item 
int {\bf timeout} () const 
\begin{CompactList}\small\item\em Returns the delay before the popup is removed automatically. \item\end{CompactList}\item 
virtual void {\bf set\-Auto\-Delete} (bool auto\-Delete)
\begin{CompactList}\small\item\em Enables / disables auto-deletion of this widget when the {\bf timeout}{\rm (p.\,\pageref{classKPassivePopup_a8})} occurs. \item\end{CompactList}\item 
bool {\bf auto\-Delete} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPassive\-Popup} $\ast$ {\bf message} (const  {\bf QString} \&text, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Convenience method that displays popup with the specified message beside the icon of the specified widget. \item\end{CompactList}\item 
{\bf KPassive\-Popup} $\ast$ {\bf message} (const  {\bf QString} \&caption, const  {\bf QString} \&text, {\bf QWidget} $\ast$parent, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Convenience method that displays popup with the specified caption and message beside the icon of the specified widget. \item\end{CompactList}\item 
{\bf KPassive\-Popup} $\ast$ {\bf message} (const  {\bf QString} \&caption, const  {\bf QString} \&text, const  {\bf QPixmap} \&icon, {\bf QWidget} $\ast$parent, const  char $\ast$name=0, int timeout=-1)
\begin{CompactList}\small\item\em Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified widget. \item\end{CompactList}\item 
{\bf KPassive\-Popup} $\ast$ {\bf message} (const  {\bf QString} \&caption, const  {\bf QString} \&text, const  {\bf QPixmap} \&icon, WId parent, const  char $\ast$name=0, int timeout=-1)
\begin{CompactList}\small\item\em Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified window. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf position\-Self} ()
\begin{CompactList}\small\item\em This method positions the popup. \item\end{CompactList}\item 
virtual void {\bf hide\-Event} ({\bf QHide\-Event} $\ast$)
\begin{CompactList}\small\item\em Reimplemented to destroy the object when {\bf auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a10})}() is enabled. \item\end{CompactList}\item 
void {\bf move\-Near} ({\bf QRect} target)
\begin{CompactList}\small\item\em Moves the popup to be adjacent to the icon of the specified rectangle. \item\end{CompactList}\item 
virtual void {\bf mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$e)
\begin{CompactList}\small\item\em Reimplemented to detect mouse clicks. \item\end{CompactList}\item 
{\bf QRect} {\bf default\-Area} () const 
\begin{CompactList}\small\item\em If no relative window (e.g. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A dialog-like popup that displays messages without interupting the user. 

The simplest uses of KPassive\-Popup are by using the various {\bf message}{\rm (p.\,\pageref{classKPassivePopup_e0})}() static methods. The position the popup appears at depends on the type of the parent window:

\begin{itemize}
\item Normal Windows: The popup is placed adjacent to the icon of the window. \item System Tray Windows: The popup is placed adjact to the system tray window itself. \item Skip Taskbar Windows: The popup is placed adjact to the window itself if it is visible, and at the edge of the desktop otherwise.\end{itemize}
The most basic use of KPassive\-Popup displays a popup containing a piece of text: \small\begin{alltt}
    {\bf KPassivePopup::message}{\rm (p.\,\pageref{classKPassivePopup_e0})}( ''This is the message'', this );
 \end{alltt}\normalsize 
 We can create popups with titles and icons too, as this example shows: \small\begin{alltt}
    {\bf QPixmap} px;
    px.load( ''hi32-app-logtracker.png'' );
    {\bf KPassivePopup::message}{\rm (p.\,\pageref{classKPassivePopup_e0})}( ''Some title'', ''This is the main text'', px, this );
 \end{alltt}\normalsize 
 For more control over the popup, you can use the {\bf set\-View}{\rm (p.\,\pageref{classKPassivePopup_a3})}({\bf QWidget} $\ast$) method to create a custom popup. \small\begin{alltt}
    KPassivePopup *pop = new KPassivePopup( parent );\end{alltt}\normalsize 


\small\begin{alltt}    {\bf QVBox} *vb = new QVBox( pop );
    (void) new {\bf QLabel}( ''$<$b$>$Isn't this great?$<$/b$>$'', vb );\end{alltt}\normalsize 


\small\begin{alltt}    {\bf QHBox} *box = new QHBox( vb );
    (void) new {\bf QPushButton}( ''Yes'', box );
    (void) new {\bf QPushButton}( ''No'', box );\end{alltt}\normalsize 


\small\begin{alltt}    pop-$>$setView( vb );
    pop-$>${\bf show()}{\rm (p.\,\pageref{classKPassivePopup_i1})};
 \end{alltt}\normalsize 


\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf kpassivepopup.h}{\rm (p.\,\pageref{kpassivepopup_8h})},v 1.11 2002/11/15 12:29:38 amantia Exp \end{Desc}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}
\begin{Desc}
\item[Author:]Richard Moore, {\tt rich@kde.org} \end{Desc}




Definition at line 59 of file kpassivepopup.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPassivePopup@{KPassive\-Popup}!KPassivePopup@{KPassivePopup}}
\index{KPassivePopup@{KPassivePopup}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassive\-Popup::KPassive\-Popup ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0, WFlags {\em f} = 0)}\label{classKPassivePopup_a0}


Creates a popup for the specified widget. 



Definition at line 28 of file kpassivepopup.cpp.

References KStd\-Accel::name().

Referenced by message().\index{KPassivePopup@{KPassive\-Popup}!KPassivePopup@{KPassivePopup}}
\index{KPassivePopup@{KPassivePopup}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassive\-Popup::KPassive\-Popup (WId {\em parent}, const char $\ast$ {\em name} = 0, WFlags {\em f} = 0)}\label{classKPassivePopup_a1}


Creates a popup for the specified window. 



Definition at line 36 of file kpassivepopup.cpp.

References KStd\-Accel::name().\index{KPassivePopup@{KPassive\-Popup}!~KPassivePopup@{$\sim$KPassivePopup}}
\index{~KPassivePopup@{$\sim$KPassivePopup}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPassive\-Popup::$\sim${\bf KPassive\-Popup} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKPassivePopup_a2}


Cleans up. 



Definition at line 52 of file kpassivepopup.cpp.

\subsection{Member Function Documentation}
\index{KPassivePopup@{KPassive\-Popup}!setView@{setView}}
\index{setView@{setView}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::set\-View ({\bf QWidget} $\ast$ {\em child})}\label{classKPassivePopup_a3}


Sets the main view to be the specified widget (which must be a child of the popup). 



Definition at line 56 of file kpassivepopup.cpp.

References QBox\-Layout::add\-Widget(), KDialog::margin\-Hint(), and KDialog::spacing\-Hint().

Referenced by message(), and set\-View().\index{KPassivePopup@{KPassive\-Popup}!setView@{setView}}
\index{setView@{setView}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::set\-View (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text} = QString::null)}\label{classKPassivePopup_a4}


Creates a standard view then calls {\bf set\-View}{\rm (p.\,\pageref{classKPassivePopup_a3})}(QWidget$\ast$) . 



Definition at line 110 of file kpassivepopup.cpp.

References set\-View().\index{KPassivePopup@{KPassive\-Popup}!setView@{setView}}
\index{setView@{setView}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::set\-View (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, const {\bf QPixmap} \& {\em icon})\hspace{0.3cm}{\tt  [virtual]}}\label{classKPassivePopup_a5}


Creates a standard view then calls {\bf set\-View}{\rm (p.\,\pageref{classKPassivePopup_a3})}(QWidget$\ast$) . 



Definition at line 67 of file kpassivepopup.cpp.

References set\-View(), and standard\-View().\index{KPassivePopup@{KPassive\-Popup}!standardView@{standardView}}
\index{standardView@{standardView}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QVBox} $\ast$ KPassive\-Popup::standard\-View (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, const {\bf QPixmap} \& {\em icon}, {\bf QWidget} $\ast$ {\em parent} = 0L)}\label{classKPassivePopup_a6}


Returns a widget that is used as standard view if one of the {\bf set\-View()}{\rm (p.\,\pageref{classKPassivePopup_a3})} methods taking the {\bf QString} arguments is used. 

You can use the returned widget to customize the passivepopup while keeping the look similar to the \char`\"{}standard\char`\"{} passivepopups.

After customizing the widget, pass it to {\bf set\-View}{\rm (p.\,\pageref{classKPassivePopup_a3})}( QWidget$\ast$ )

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]The parent widget used for the returned {\bf QVBox}. If left 0L, then \char`\"{}this\char`\"{}, i.e. the passive popup object will be used.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a {\bf QVBox} containing the given arguments, looking like the standard passivepopups. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-View( QWidget $\ast$ )}{\rm (p.\,\pageref{classKPassivePopup_a3})} 

{\bf set\-View( const QString\&, const QString\& )}{\rm (p.\,\pageref{classKPassivePopup_a4})} 

{\bf set\-View( const QString\&, const QString\&, const QPixmap\& )}{\rm (p.\,\pageref{classKPassivePopup_a5})} \end{Desc}


Definition at line 74 of file kpassivepopup.cpp.

References QString::is\-Empty(), QPixmap::is\-Null(), QLabel::set\-Alignment(), QFont::set\-Bold(), QLabel::set\-Font(), QLabel::set\-Pixmap(), QHBox::set\-Spacing(), QHBox::set\-Stretch\-Factor(), and KDialog::spacing\-Hint().

Referenced by set\-View().\index{KPassivePopup@{KPassive\-Popup}!view@{view}}
\index{view@{view}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QWidget}$\ast$ KPassive\-Popup::view () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPassivePopup_a7}


Returns the main view. 



Definition at line 117 of file kpassivepopup.h.\index{KPassivePopup@{KPassive\-Popup}!timeout@{timeout}}
\index{timeout@{timeout}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPassive\-Popup::timeout () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPassivePopup_a8}


Returns the delay before the popup is removed automatically. 



Definition at line 122 of file kpassivepopup.h.\index{KPassivePopup@{KPassive\-Popup}!setAutoDelete@{setAutoDelete}}
\index{setAutoDelete@{setAutoDelete}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::set\-Auto\-Delete (bool {\em auto\-Delete})\hspace{0.3cm}{\tt  [virtual]}}\label{classKPassivePopup_a9}


Enables / disables auto-deletion of this widget when the {\bf timeout}{\rm (p.\,\pageref{classKPassivePopup_a8})} occurs. 

The default is false. If you use the class-methods {\bf message()}{\rm (p.\,\pageref{classKPassivePopup_e0})}, auto-delection is turned on by default. 

Definition at line 122 of file kpassivepopup.cpp.

Referenced by message().\index{KPassivePopup@{KPassive\-Popup}!autoDelete@{autoDelete}}
\index{autoDelete@{autoDelete}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KPassive\-Popup::auto\-Delete () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPassivePopup_a10}


\begin{Desc}
\item[Returns:]true if the widget auto-deletes itself when the {\bf timeout}{\rm (p.\,\pageref{classKPassivePopup_a8})} occurs. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a9})} \end{Desc}


Definition at line 136 of file kpassivepopup.h.\index{KPassivePopup@{KPassive\-Popup}!message@{message}}
\index{message@{message}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPassive\-Popup} $\ast$ KPassive\-Popup::message (const {\bf QString} \& {\em text}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)\hspace{0.3cm}{\tt  [static]}}\label{classKPassivePopup_e0}


Convenience method that displays popup with the specified message beside the icon of the specified widget. 

Note that the returned object is destroyed when it is hidden. \begin{Desc}
\item[See also:]{\bf set\-Auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a9})} \end{Desc}


Definition at line 260 of file kpassivepopup.cpp.

References KStd\-Accel::name().

Referenced by message().\index{KPassivePopup@{KPassive\-Popup}!message@{message}}
\index{message@{message}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPassive\-Popup} $\ast$ KPassive\-Popup::message (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0)\hspace{0.3cm}{\tt  [static]}}\label{classKPassivePopup_e1}


Convenience method that displays popup with the specified caption and message beside the icon of the specified widget. 

Note that the returned object is destroyed when it is hidden. \begin{Desc}
\item[See also:]{\bf set\-Auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a9})} \end{Desc}


Definition at line 265 of file kpassivepopup.cpp.

References message(), and KStd\-Accel::name().\index{KPassivePopup@{KPassive\-Popup}!message@{message}}
\index{message@{message}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPassive\-Popup} $\ast$ KPassive\-Popup::message (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, const {\bf QPixmap} \& {\em icon}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = 0, int {\em timeout} = -1)\hspace{0.3cm}{\tt  [static]}}\label{classKPassivePopup_e2}


Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified widget. 

Note that the returned object is destroyed when it is hidden. \begin{Desc}
\item[See also:]{\bf set\-Auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a9})} \end{Desc}


Definition at line 247 of file kpassivepopup.cpp.

References hide\-Delay, KPassive\-Popup(), KStd\-Accel::name(), set\-Auto\-Delete(), set\-View(), and show().\index{KPassivePopup@{KPassive\-Popup}!message@{message}}
\index{message@{message}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPassive\-Popup} $\ast$ KPassive\-Popup::message (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, const {\bf QPixmap} \& {\em icon}, WId {\em parent}, const char $\ast$ {\em name} = 0, int {\em timeout} = -1)\hspace{0.3cm}{\tt  [static]}}\label{classKPassivePopup_e3}


Convenience method that displays popup with the specified icon, caption and message beside the icon of the specified window. 

Note that the returned object is destroyed when it is hidden. \begin{Desc}
\item[See also:]{\bf set\-Auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a9})} \end{Desc}


Definition at line 271 of file kpassivepopup.cpp.

References hide\-Delay, KPassive\-Popup(), KStd\-Accel::name(), set\-Auto\-Delete(), set\-View(), and show().\index{KPassivePopup@{KPassive\-Popup}!setTimeout@{setTimeout}}
\index{setTimeout@{setTimeout}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::set\-Timeout (int {\em delay})\hspace{0.3cm}{\tt  [slot]}}\label{classKPassivePopup_i0}


Sets the delay for the popup is removed automatically. 

Setting the delay to 0 disables the {\bf timeout}{\rm (p.\,\pageref{classKPassivePopup_a8})}, if you're doing this, you may want to connect the {\bf clicked}{\rm (p.\,\pageref{classKPassivePopup_l0})}() signal to the hide() slot. Setting the delay to -1 makes it use the default value. 

Definition at line 115 of file kpassivepopup.cpp.

References QTimer::change\-Interval(), and QTimer::is\-Active().\index{KPassivePopup@{KPassive\-Popup}!show@{show}}
\index{show@{show}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::show ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKPassivePopup_i1}


Reimplemented to reposition the popup. 



Definition at line 137 of file kpassivepopup.cpp.

References position\-Self(), and QTimer::start().

Referenced by message().\index{KPassivePopup@{KPassive\-Popup}!clicked@{clicked}}
\index{clicked@{clicked}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::clicked ()\hspace{0.3cm}{\tt  [signal]}}\label{classKPassivePopup_l0}


Emitted when the popup is clicked. 



Referenced by mouse\-Release\-Event().\index{KPassivePopup@{KPassive\-Popup}!clicked@{clicked}}
\index{clicked@{clicked}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::clicked ({\bf QPoint} {\em pos})\hspace{0.3cm}{\tt  [signal]}}\label{classKPassivePopup_l1}


Emitted when the popup is clicked. 

\index{KPassivePopup@{KPassive\-Popup}!positionSelf@{positionSelf}}
\index{positionSelf@{positionSelf}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::position\-Self ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKPassivePopup_b0}


This method positions the popup. 



Definition at line 175 of file kpassivepopup.cpp.

References default\-Area(), NETSize::height, QRect::is\-Null(), move\-Near(), NETRect::pos, QRect::set\-Rect(), NETRect::size, NETSize::width, NETPoint::x, and NETPoint::y.

Referenced by show().\index{KPassivePopup@{KPassive\-Popup}!hideEvent@{hideEvent}}
\index{hideEvent@{hideEvent}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::hide\-Event ({\bf QHide\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKPassivePopup_b1}


Reimplemented to destroy the object when {\bf auto\-Delete}{\rm (p.\,\pageref{classKPassivePopup_a10})}() is enabled. 



Definition at line 154 of file kpassivepopup.cpp.

References QTimer::stop().\index{KPassivePopup@{KPassive\-Popup}!moveNear@{moveNear}}
\index{moveNear@{moveNear}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::move\-Near ({\bf QRect} {\em target})\hspace{0.3cm}{\tt  [protected]}}\label{classKPassivePopup_b2}


Moves the popup to be adjacent to the icon of the specified rectangle. 



Definition at line 213 of file kpassivepopup.cpp.

References QRect::height(), KIO::move(), QRect::top\-Left(), QRect::width(), QPoint::x(), and QPoint::y().

Referenced by position\-Self().\index{KPassivePopup@{KPassive\-Popup}!mouseReleaseEvent@{mouseReleaseEvent}}
\index{mouseReleaseEvent@{mouseReleaseEvent}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPassive\-Popup::mouse\-Release\-Event ({\bf QMouse\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKPassivePopup_b3}


Reimplemented to detect mouse clicks. 



Definition at line 127 of file kpassivepopup.cpp.

References clicked(), and QMouse\-Event::pos().\index{KPassivePopup@{KPassive\-Popup}!defaultArea@{defaultArea}}
\index{defaultArea@{defaultArea}!KPassivePopup@{KPassive\-Popup}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QRect} KPassive\-Popup::default\-Area () const\hspace{0.3cm}{\tt  [protected]}}\label{classKPassivePopup_b4}


If no relative window (e.g. 

taskbar button, system tray window) is available, use this rectangle (pass it to {\bf move\-Near}{\rm (p.\,\pageref{classKPassivePopup_b2})}()). Basically {\bf KWin\-Module::work\-Area()} with width and height set to 0 so that move\-Near uses the upper-left position. \begin{Desc}
\item[Returns:]The {\bf QRect} to be passed to {\bf move\-Near}{\rm (p.\,\pageref{classKPassivePopup_b2})}() ifno other is available. \end{Desc}


Definition at line 161 of file kpassivepopup.cpp.

References NETRect::pos, QRect::set\-Rect(), NETPoint::x, and NETPoint::y.

Referenced by position\-Self().

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