\section{KTool\-Bar\-Button Class Reference}
\label{classKToolBarButton}\index{KToolBarButton@{KToolBarButton}}
A toolbar button.  


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

Inheritance diagram for KTool\-Bar\-Button:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKToolBarButton__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KTool\-Bar\-Button:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKToolBarButton__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf mode\-Change} ()
\item 
virtual void {\bf set\-Text\-Label} (const {\bf QString} \&, bool tip\-Too)\label{classKToolBarButton_i1}

\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf clicked} (int)
\item 
void {\bf button\-Clicked} (int, Qt::Button\-State state)
\item 
void {\bf double\-Clicked} (int)\label{classKToolBarButton_l2}

\item 
void {\bf pressed} (int)\label{classKToolBarButton_l3}

\item 
void {\bf released} (int)\label{classKToolBarButton_l4}

\item 
void {\bf toggled} (int)\label{classKToolBarButton_l5}

\item 
void {\bf highlighted} (int, bool)\label{classKToolBarButton_l6}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KTool\-Bar\-Button} (const {\bf QString} \&icon, int id, {\bf QWidget} $\ast$parent, const char $\ast$name=0L, const {\bf QString} \&txt=QString::null, {\bf KInstance} $\ast$\_\-instance={\bf KGlobal::instance}())
\item 
{\bf KTool\-Bar\-Button} (const {\bf QPixmap} \&pixmap, int id, {\bf QWidget} $\ast$parent, const char $\ast$name=0L, const {\bf QString} \&txt=QString::null)
\item 
{\bf KTool\-Bar\-Button} ({\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L)
\item 
{\bf $\sim$KTool\-Bar\-Button} ()
\item 
virtual void {\bf set\-Pixmap} (const {\bf QPixmap} \&pixmap) KDE\_\-DEPRECATED
\item 
void {\bf set\-Default\-Pixmap} (const {\bf QPixmap} \&pixmap) KDE\_\-DEPRECATED
\item 
void {\bf set\-Disabled\-Pixmap} (const {\bf QPixmap} \&pixmap) KDE\_\-DEPRECATED
\item 
virtual void {\bf set\-Text} (const {\bf QString} \&text)
\item 
virtual void {\bf set\-Icon} (const {\bf QString} \&icon)
\item 
virtual void {\bf set\-Icon} (const {\bf QPixmap} \&pixmap)
\item 
virtual void {\bf set\-Icon\-Set} (const {\bf QIcon\-Set} \&iconset)
\item 
KDE\_\-DEPRECATED void {\bf set\-Icon} (const {\bf QString} \&icon, bool generate)
\item 
void {\bf set\-Default\-Icon} (const {\bf QString} \&icon) KDE\_\-DEPRECATED
\item 
void {\bf set\-Disabled\-Icon} (const {\bf QString} \&icon) KDE\_\-DEPRECATED
\item 
void {\bf on} (bool flag=true)
\item 
void {\bf toggle} ()
\item 
void {\bf set\-Toggle} (bool toggle=true)
\item 
{\bf QPopup\-Menu} $\ast$ {\bf popup} ()
\item 
int {\bf id} () const 
\item 
void {\bf set\-Popup} ({\bf QPopup\-Menu} $\ast$p, bool unused=false)
\item 
void {\bf set\-Delayed\-Popup} ({\bf QPopup\-Menu} $\ast$p, bool unused=false)
\item 
void {\bf set\-Radio} (bool f=true)
\item 
void {\bf set\-No\-Style} (bool no\_\-style=true)
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Clicked} ()\label{classKToolBarButton_j0}

\item 
void {\bf slot\-Pressed} ()\label{classKToolBarButton_j1}

\item 
void {\bf slot\-Released} ()\label{classKToolBarButton_j2}

\item 
void {\bf slot\-Toggled} ()\label{classKToolBarButton_j3}

\item 
void {\bf slot\-Delay\-Timeout} ()\label{classKToolBarButton_j4}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf palette\-Change} (const {\bf QPalette} \&)\label{classKToolBarButton_b0}

\item 
void {\bf leave\-Event} ({\bf QEvent} $\ast$e)\label{classKToolBarButton_b1}

\item 
void {\bf enter\-Event} ({\bf QEvent} $\ast$e)\label{classKToolBarButton_b2}

\item 
void {\bf draw\-Button} ({\bf QPainter} $\ast$p)\label{classKToolBarButton_b3}

\item 
bool {\bf event\-Filter} ({\bf QObject} $\ast$o, {\bf QEvent} $\ast$e)\label{classKToolBarButton_b4}

\item 
void {\bf mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
void {\bf mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$)
\item 
void {\bf show\-Menu} ()\label{classKToolBarButton_b7}

\item 
{\bf QSize} {\bf size\-Hint} () const \label{classKToolBarButton_b8}

\item 
{\bf QSize} {\bf minimum\-Size\-Hint} () const \label{classKToolBarButton_b9}

\item 
{\bf QSize} {\bf minimum\-Size} () const \label{classKToolBarButton_b10}

\item 
bool {\bf is\-Raised} () const 
\item 
bool {\bf is\-Active} () const 
\item 
int {\bf icon\-Text\-Mode} () const 
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKToolBarButton_b14}

\end{CompactItemize}


\subsection{Detailed Description}
A toolbar button. 

This is used internally by {\bf KTool\-Bar}{\rm (p.\,\pageref{classKToolBar})}, use the {\bf KTool\-Bar}{\rm (p.\,\pageref{classKToolBar})} methods instead. 



Definition at line 44 of file ktoolbarbutton.h.

\subsection{Constructor \& Destructor Documentation}
\index{KToolBarButton@{KTool\-Bar\-Button}!KToolBarButton@{KToolBarButton}}
\index{KToolBarButton@{KToolBarButton}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KTool\-Bar\-Button::KTool\-Bar\-Button (const {\bf QString} \& {\em icon}, int {\em id}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0L}, const {\bf QString} \& {\em txt} = {\tt QString::null}, {\bf KInstance} $\ast$ {\em \_\-instance} = {\tt {\bf KGlobal::instance}()})}\label{classKToolBarButton_a0}


Construct a button with an icon loaded by the button itself. 

This will trust the button to load the correct icon with the correct size.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]Name of icon to load (may be absolute or relative) \item[{\em id}]Id of this button \item[{\em parent}]This button's parent \item[{\em name}]This button's internal name \item[{\em txt}]This button's text (in a tooltip or otherwise) \item[{\em \_\-instance}]the instance to use for this button \end{description}
\end{Desc}


Definition at line 110 of file ktoolbarbutton.cpp.

References clicked(), mode\-Change(), and QTool\-Button::set\-Text\-Label().\index{KToolBarButton@{KTool\-Bar\-Button}!KToolBarButton@{KToolBarButton}}
\index{KToolBarButton@{KToolBarButton}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KTool\-Bar\-Button::KTool\-Bar\-Button (const {\bf QPixmap} \& {\em pixmap}, int {\em id}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0L}, const {\bf QString} \& {\em txt} = {\tt QString::null})}\label{classKToolBarButton_a1}


Construct a button with an existing pixmap. 

It is not recommended that you use this as the internal icon loading code will almost always get it \char`\"{}right\char`\"{}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pixmap}]Name of icon to load (may be absolute or relative) \item[{\em id}]Id of this button \item[{\em parent}]This button's parent \item[{\em name}]This button's internal name \item[{\em txt}]This button's text (in a tooltip or otherwise) \end{description}
\end{Desc}


Definition at line 144 of file ktoolbarbutton.cpp.

References clicked(), mode\-Change(), set\-Icon\-Set(), and QTool\-Button::set\-Text\-Label().\index{KToolBarButton@{KTool\-Bar\-Button}!KToolBarButton@{KToolBarButton}}
\index{KToolBarButton@{KToolBarButton}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KTool\-Bar\-Button::KTool\-Bar\-Button ({\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L})}\label{classKToolBarButton_a2}


Construct a separator button. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]This button's parent \item[{\em name}]This button's internal name \end{description}
\end{Desc}


Definition at line 100 of file ktoolbarbutton.cpp.\index{KToolBarButton@{KTool\-Bar\-Button}!~KToolBarButton@{$\sim$KToolBarButton}}
\index{~KToolBarButton@{$\sim$KToolBarButton}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KTool\-Bar\-Button::$\sim${\bf KTool\-Bar\-Button} ()}\label{classKToolBarButton_a3}


Standard destructor. 



Definition at line 176 of file ktoolbarbutton.cpp.

\subsection{Member Function Documentation}
\index{KToolBarButton@{KTool\-Bar\-Button}!setPixmap@{setPixmap}}
\index{setPixmap@{setPixmap}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Pixmap (const {\bf QPixmap} \& {\em pixmap})\hspace{0.3cm}{\tt  [virtual]}}\label{classKToolBarButton_a4}


\begin{Desc}
\item[{\bf Deprecated}]Set the pixmap directly for this button. This pixmap should be the active one... the dimmed and disabled pixmaps are constructed based on this one. However, don't use this function unless you are positive that you don't want to use set\-Icon. \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pixmap}]The active pixmap \end{description}
\end{Desc}


Definition at line 299 of file ktoolbarbutton.cpp.

References QTool\-Button::icon\-Set(), QTool\-Button::set\-Icon\-Set(), and QIcon\-Set::set\-Pixmap().

Referenced by KTool\-Bar::set\-Button\-Pixmap().\index{KToolBarButton@{KTool\-Bar\-Button}!setDefaultPixmap@{setDefaultPixmap}}
\index{setDefaultPixmap@{setDefaultPixmap}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Default\-Pixmap (const {\bf QPixmap} \& {\em pixmap})}\label{classKToolBarButton_a5}


\begin{Desc}
\item[{\bf Deprecated}]Force the button to use this pixmap as the default one rather then generating it using effects. \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pixmap}]The pixmap to use as the default (normal) one \end{description}
\end{Desc}


Definition at line 311 of file ktoolbarbutton.cpp.

References QTool\-Button::icon\-Set(), QTool\-Button::set\-Icon\-Set(), and QIcon\-Set::set\-Pixmap().\index{KToolBarButton@{KTool\-Bar\-Button}!setDisabledPixmap@{setDisabledPixmap}}
\index{setDisabledPixmap@{setDisabledPixmap}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Disabled\-Pixmap (const {\bf QPixmap} \& {\em pixmap})}\label{classKToolBarButton_a6}


\begin{Desc}
\item[{\bf Deprecated}]Force the button to use this pixmap when disabled one rather then generating it using effects. \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pixmap}]The pixmap to use when disabled \end{description}
\end{Desc}


Definition at line 318 of file ktoolbarbutton.cpp.

References QTool\-Button::icon\-Set(), QTool\-Button::set\-Icon\-Set(), and QIcon\-Set::set\-Pixmap().\index{KToolBarButton@{KTool\-Bar\-Button}!setText@{setText}}
\index{setText@{setText}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Text (const {\bf QString} \& {\em text})\hspace{0.3cm}{\tt  [virtual]}}\label{classKToolBarButton_a7}


Set the text for this button. 

The text will be either used as a tooltip (Icon\-Only) or will be along side the icon

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The button (or tooltip) text \end{description}
\end{Desc}


Definition at line 273 of file ktoolbarbutton.cpp.

References mode\-Change(), and QTool\-Button::set\-Text\-Label().\index{KToolBarButton@{KTool\-Bar\-Button}!setIcon@{setIcon}}
\index{setIcon@{setIcon}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Icon (const {\bf QString} \& {\em icon})\hspace{0.3cm}{\tt  [virtual]}}\label{classKToolBarButton_a8}


Set the icon for this button. 

The icon will be loaded internally with the correct size. This function is preferred over set\-Icon\-Set

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]The name of the icon \end{description}
\end{Desc}


Definition at line 279 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-Icon\-Set().

Referenced by mode\-Change(), and KTool\-Bar::set\-Button\-Icon().\index{KToolBarButton@{KTool\-Bar\-Button}!setIcon@{setIcon}}
\index{setIcon@{setIcon}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KTool\-Bar\-Button::set\-Icon (const {\bf QPixmap} \& {\em pixmap})\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKToolBarButton_a9}


\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 141 of file ktoolbarbutton.h.\index{KToolBarButton@{KTool\-Bar\-Button}!setIconSet@{setIconSet}}
\index{setIconSet@{setIconSet}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Icon\-Set (const {\bf QIcon\-Set} \& {\em iconset})\hspace{0.3cm}{\tt  [virtual]}}\label{classKToolBarButton_a10}


Set the pixmaps for this toolbar button from a {\bf QIcon\-Set}. 

If you call this you don't need to call any of the other methods that set icons or pixmaps. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em iconset}]The iconset to use \end{description}
\end{Desc}


Reimplemented from {\bf QTool\-Button}.

Definition at line 293 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-Icon\-Set().

Referenced by KTool\-Bar\-Button(), and KTool\-Bar::set\-Button\-Icon\-Set().\index{KToolBarButton@{KTool\-Bar\-Button}!setIcon@{setIcon}}
\index{setIcon@{setIcon}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDE\_\-DEPRECATED void KTool\-Bar\-Button::set\-Icon (const {\bf QString} \& {\em icon}, bool {\em generate})\hspace{0.3cm}{\tt  [inline]}}\label{classKToolBarButton_a11}


\begin{Desc}
\item[{\bf Deprecated}]Set the active icon for this button. The pixmap itself is loaded internally based on the icon size... .. the disabled and default pixmaps, however will only be constructed if generate is true. This function is preferred over set\-Pixmap \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]The name of the active icon \item[{\em generate}]If true, then the other icons are automagically generated from this one \end{description}
\end{Desc}


Definition at line 164 of file ktoolbarbutton.h.\index{KToolBarButton@{KTool\-Bar\-Button}!setDefaultIcon@{setDefaultIcon}}
\index{setDefaultIcon@{setDefaultIcon}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Default\-Icon (const {\bf QString} \& {\em icon})}\label{classKToolBarButton_a12}


\begin{Desc}
\item[{\bf Deprecated}]Force the button to use this icon as the default one rather then generating it using effects. \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]The icon to use as the default (normal) one \end{description}
\end{Desc}


Definition at line 325 of file ktoolbarbutton.cpp.

References QTool\-Button::icon\-Set(), QTool\-Button::set\-Icon\-Set(), and QIcon\-Set::set\-Pixmap().\index{KToolBarButton@{KTool\-Bar\-Button}!setDisabledIcon@{setDisabledIcon}}
\index{setDisabledIcon@{setDisabledIcon}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Disabled\-Icon (const {\bf QString} \& {\em icon})}\label{classKToolBarButton_a13}


\begin{Desc}
\item[{\bf Deprecated}]Force the button to use this icon when disabled one rather then generating it using effects. \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em icon}]The icon to use when disabled \end{description}
\end{Desc}


Definition at line 339 of file ktoolbarbutton.cpp.

References QTool\-Button::icon\-Set(), QTool\-Button::set\-Icon\-Set(), and QIcon\-Set::set\-Pixmap().\index{KToolBarButton@{KTool\-Bar\-Button}!on@{on}}
\index{on@{on}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::on (bool {\em flag} = {\tt true})}\label{classKToolBarButton_a14}


Turn this button on or off. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em flag}]true or false \end{description}
\end{Desc}


Definition at line 696 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-On().

Referenced by KTool\-Bar::set\-Button().\index{KToolBarButton@{KTool\-Bar\-Button}!toggle@{toggle}}
\index{toggle@{toggle}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::toggle ()}\label{classKToolBarButton_a15}


Toggle this button. 



Reimplemented from {\bf QTool\-Button}.

Definition at line 708 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-On().

Referenced by KTool\-Bar::toggle\-Button().\index{KToolBarButton@{KTool\-Bar\-Button}!setToggle@{setToggle}}
\index{setToggle@{setToggle}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Toggle (bool {\em toggle} = {\tt true})}\label{classKToolBarButton_a16}


Turn this button into a toggle button or disable the toggle aspects of it. 

This does not toggle the button itself. Use {\bf toggle()}{\rm (p.\,\pageref{classKToolBarButton_a15})} for that.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em toggle}]true or false \end{description}
\end{Desc}


Definition at line 714 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-Toggle\-Button().

Referenced by KTool\-Bar::set\-Toggle().\index{KToolBarButton@{KTool\-Bar\-Button}!popup@{popup}}
\index{popup@{popup}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPopup\-Menu} $\ast$ KTool\-Bar\-Button::popup ()}\label{classKToolBarButton_a17}


Return a pointer to this button's popup menu (if it exists). 



Definition at line 353 of file ktoolbarbutton.cpp.

References QTool\-Button::popup().\index{KToolBarButton@{KTool\-Bar\-Button}!id@{id}}
\index{id@{id}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KTool\-Bar\-Button::id () const}\label{classKToolBarButton_a18}


Returns the button's id. 

\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 753 of file ktoolbarbutton.cpp.\index{KToolBarButton@{KTool\-Bar\-Button}!setPopup@{setPopup}}
\index{setPopup@{setPopup}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Popup ({\bf QPopup\-Menu} $\ast$ {\em p}, bool {\em unused} = {\tt false})}\label{classKToolBarButton_a19}


Give this button a popup menu. 

There will not be a delay when you press the button. Use set\-Delayed\-Popup if you want that behavior.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p}]The new popup menu \item[{\em unused}]Has no effect - ignore it. \end{description}
\end{Desc}


Definition at line 360 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-Popup(), and QTool\-Button::set\-Popup\-Delay().

Referenced by KTool\-Bar::insert\-Button(), KTool\-Bar\-Popup\-Action::plug(), and KAction\-Menu::plug().\index{KToolBarButton@{KTool\-Bar\-Button}!setDelayedPopup@{setDelayedPopup}}
\index{setDelayedPopup@{setDelayedPopup}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Delayed\-Popup ({\bf QPopup\-Menu} $\ast$ {\em p}, bool {\em unused} = {\tt false})}\label{classKToolBarButton_a20}


Gives this button a delayed popup menu. 

This function allows you to add a delayed popup menu to the button. The popup menu is then only displayed when the button is pressed and held down for about half a second.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em p}]the new popup menu \item[{\em unused}]Has no effect - ignore it. \end{description}
\end{Desc}


Definition at line 367 of file ktoolbarbutton.cpp.

References QTool\-Button::set\-Popup(), and QTool\-Button::set\-Popup\-Delay().

Referenced by KTool\-Bar::set\-Delayed\-Popup().\index{KToolBarButton@{KTool\-Bar\-Button}!setRadio@{setRadio}}
\index{setRadio@{setRadio}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-Radio (bool {\em f} = {\tt true})}\label{classKToolBarButton_a21}


Turn this button into a radio button. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em f}]true or false \end{description}
\end{Desc}


Definition at line 690 of file ktoolbarbutton.cpp.

Referenced by KTool\-Bar\-Radio\-Group::add\-Button().\index{KToolBarButton@{KTool\-Bar\-Button}!setNoStyle@{setNoStyle}}
\index{setNoStyle@{setNoStyle}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::set\-No\-Style (bool {\em no\_\-style} = {\tt true})}\label{classKToolBarButton_a22}


Toolbar buttons naturally will assume the global styles concerning icons, icons sizes, etc. 

You can use this function to explicitly turn this off, if you like.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em no\_\-style}]Will disable styles if true \end{description}
\end{Desc}


Definition at line 681 of file ktoolbarbutton.cpp.

References mode\-Change().

Referenced by KTool\-Bar::set\-Item\-No\-Style().\index{KToolBarButton@{KTool\-Bar\-Button}!clicked@{clicked}}
\index{clicked@{clicked}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::clicked (int)\hspace{0.3cm}{\tt  [signal]}}\label{classKToolBarButton_l0}


Emitted when the toolbar button is clicked (with LMB or MMB). 



Referenced by KTool\-Bar\-Button().\index{KToolBarButton@{KTool\-Bar\-Button}!buttonClicked@{buttonClicked}}
\index{buttonClicked@{buttonClicked}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::button\-Clicked (int, Qt::Button\-State {\em state})\hspace{0.3cm}{\tt  [signal]}}\label{classKToolBarButton_l1}


Emitted when the toolbar button is clicked (with any mouse button). 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em state}]makes it possible to find out which button was pressed, and whether any keyboard modifiers were held. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Referenced by mouse\-Release\-Event().\index{KToolBarButton@{KTool\-Bar\-Button}!modeChange@{modeChange}}
\index{modeChange@{modeChange}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::mode\-Change ()\hspace{0.3cm}{\tt  [slot]}}\label{classKToolBarButton_i0}


This slot should be called whenever the toolbar mode has potentially changed. 

This includes such events as text changing, orientation changing, etc. 

Definition at line 181 of file ktoolbarbutton.cpp.

References QTool\-Tip::add(), QSize::height(), QFont\-Metrics::line\-Spacing(), QTool\-Tip::remove(), set\-Icon(), QSize::set\-Width(), QTool\-Button::text\-Label(), KGlobal\-Settings::tool\-Bar\-Font(), QSize::width(), and QFont\-Metrics::width().

Referenced by KTool\-Bar\-Button(), set\-No\-Style(), and set\-Text().\index{KToolBarButton@{KTool\-Bar\-Button}!mousePressEvent@{mousePressEvent}}
\index{mousePressEvent@{mousePressEvent}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::mouse\-Press\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected]}}\label{classKToolBarButton_b5}


\begin{Desc}
\item[Since:]3.4 \end{Desc}




Definition at line 449 of file ktoolbarbutton.cpp.\index{KToolBarButton@{KTool\-Bar\-Button}!mouseReleaseEvent@{mouseReleaseEvent}}
\index{mouseReleaseEvent@{mouseReleaseEvent}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KTool\-Bar\-Button::mouse\-Release\-Event ({\bf QMouse\-Event} $\ast$)\hspace{0.3cm}{\tt  [protected]}}\label{classKToolBarButton_b6}


\begin{Desc}
\item[Since:]3.4 \end{Desc}




Definition at line 463 of file ktoolbarbutton.cpp.

References button\-Clicked().\index{KToolBarButton@{KTool\-Bar\-Button}!isRaised@{isRaised}}
\index{isRaised@{isRaised}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KTool\-Bar\-Button::is\-Raised () const\hspace{0.3cm}{\tt  [protected]}}\label{classKToolBarButton_b11}


\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 738 of file ktoolbarbutton.cpp.\index{KToolBarButton@{KTool\-Bar\-Button}!isActive@{isActive}}
\index{isActive@{isActive}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KTool\-Bar\-Button::is\-Active () const\hspace{0.3cm}{\tt  [protected]}}\label{classKToolBarButton_b12}


\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 743 of file ktoolbarbutton.cpp.\index{KToolBarButton@{KTool\-Bar\-Button}!iconTextMode@{iconTextMode}}
\index{iconTextMode@{iconTextMode}!KToolBarButton@{KTool\-Bar\-Button}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KTool\-Bar\-Button::icon\-Text\-Mode () const\hspace{0.3cm}{\tt  [protected]}}\label{classKToolBarButton_b13}


\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 748 of file ktoolbarbutton.cpp.

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