\section{KInt\-Num\-Input Class Reference}
\label{classKIntNumInput}\index{KIntNumInput@{KIntNumInput}}
KInt\-Num\-Input combines a {\bf QSpin\-Box} and optionally a {\bf QSlider} with a label to make an easy to use control for setting some integer parameter. An input widget for integer numbers, consisting of a spinbox and a slider.  


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

Inheritance diagram for KInt\-Num\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=61pt]{classKIntNumInput__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KInt\-Num\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=282pt]{classKIntNumInput__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Value} (int)
\begin{CompactList}\small\item\em Sets the value of the control. \item\end{CompactList}\item 
void {\bf set\-Relative\-Value} (double)
\begin{CompactList}\small\item\em Sets the value in units of the {\bf reference\-Point}{\rm (p.\,\pageref{classKIntNumInput_a6})} \begin{Desc}
\item[Since:]3.1. \end{Desc}
\item\end{CompactList}\item 
void {\bf set\-Reference\-Point} (int)
\begin{CompactList}\small\item\em Sets the reference point for {\bf relative\-Value}{\rm (p.\,\pageref{classKIntNumInput_a5})}. \item\end{CompactList}\item 
void {\bf set\-Suffix} (const  {\bf QString} \&suffix)
\begin{CompactList}\small\item\em Sets the suffix to {\tt suffix}. \item\end{CompactList}\item 
void {\bf set\-Prefix} (const  {\bf QString} \&prefix)
\begin{CompactList}\small\item\em Sets the prefix to {\tt prefix}. \item\end{CompactList}\item 
void {\bf set\-Edit\-Focus} (bool mark=true)
\begin{CompactList}\small\item\em sets focus to the edit widget and marks all text in if mark == true \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf value\-Changed} (int)
\begin{CompactList}\small\item\em Emitted every time the value changes (by calling {\bf set\-Value}{\rm (p.\,\pageref{classKIntNumInput_i0})}() or by user interaction). \item\end{CompactList}\item 
void {\bf relative\-Value\-Changed} (double)
\begin{CompactList}\small\item\em Emitted whenever {\bf value\-Changed}{\rm (p.\,\pageref{classKIntNumInput_l0})} is. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KInt\-Num\-Input} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs an input control for integer values with base 10 and initial value 0. \item\end{CompactList}\item 
{\bf KInt\-Num\-Input} (int value, {\bf QWidget} $\ast$parent=0, int base=10, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor It constructs a {\bf QSpin\-Box} that allows the input of integer numbers in the range of -INT\_\-MAX to +INT\_\-MAX. \item\end{CompactList}\item 
{\bf KInt\-Num\-Input} ({\bf KNum\-Input} $\ast$below, int value, {\bf QWidget} $\ast$parent=0, int base=10, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$KInt\-Num\-Input} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
int {\bf value} () const 
\item 
double {\bf relative\-Value} () const 
\item 
int {\bf reference\-Point} () const 
\item 
{\bf QString} {\bf suffix} () const 
\item 
{\bf QString} {\bf prefix} () const 
\item 
{\bf QString} {\bf special\-Value\-Text} () const 
\item 
void {\bf set\-Range} (int min, int max, int step=1, bool slider=true)
\item 
void {\bf set\-Min\-Value} (int min)
\begin{CompactList}\small\item\em Sets the minimum value. \item\end{CompactList}\item 
int {\bf min\-Value} () const 
\item 
void {\bf set\-Max\-Value} (int max)
\begin{CompactList}\small\item\em Sets the maximum value. \item\end{CompactList}\item 
int {\bf max\-Value} () const 
\item 
void {\bf set\-Special\-Value\-Text} (const  {\bf QString} \&text)
\begin{CompactList}\small\item\em Sets the special value text. \item\end{CompactList}\item 
virtual void {\bf set\-Label} (const  {\bf QString} \&label, int a=Align\-Left$|$Align\-Top)
\begin{CompactList}\small\item\em Sets the text and alignment of the main description label. \item\end{CompactList}\item 
virtual {\bf QSize} {\bf minimum\-Size\-Hint} () const 
\begin{CompactList}\small\item\em This method returns the minimum size necessary to display the control. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf do\-Layout} ()
\begin{CompactList}\small\item\em You need to overwrite this method and implement your layout calculations there. \item\end{CompactList}\item 
void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKIntNumInput_b1}

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

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KInt\-Spin\-Box} $\ast$ {\bf m\_\-spin}\label{classKIntNumInput_p0}

\item 
{\bf QSize} {\bf m\_\-size\-Spin}\label{classKIntNumInput_p1}

\end{CompactItemize}


\subsection{Detailed Description}
KInt\-Num\-Input combines a {\bf QSpin\-Box} and optionally a {\bf QSlider} with a label to make an easy to use control for setting some integer parameter. An input widget for integer numbers, consisting of a spinbox and a slider. 

This is especially nice for configuration dialogs, which can have many such combinated controls.

The slider is created only when the user specifies a range for the control using the set\-Range function with the slider parameter set to \char`\"{}true\char`\"{}.

A special feature of KInt\-Num\-Input, designed specifically for the situation when there are several KInt\-Num\-Inputs in a column, is that you can specify what portion of the control is taken by the {\bf QSpin\-Box} (the remaining portion is used by the slider). This makes it very simple to have all the sliders in a column be the same size.

It uses {\bf KInt\-Validator}{\rm (p.\,\pageref{classKIntValidator})} validator class. KInt\-Num\-Input enforces the value to be in the given range, and can display it in any base between 2 and 36.

\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf knuminput.h}{\rm (p.\,\pageref{knuminput_8h})},v 1.44 2002/09/28 15:16:22 tjansen Exp \end{Desc}
\end{Desc}




Definition at line 181 of file knuminput.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIntNumInput@{KInt\-Num\-Input}!KIntNumInput@{KIntNumInput}}
\index{KIntNumInput@{KIntNumInput}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Num\-Input::KInt\-Num\-Input ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKIntNumInput_a0}


Constructs an input control for integer values with base 10 and initial value 0. 



Definition at line 271 of file knuminput.cpp.

References KStd\-Accel::name().\index{KIntNumInput@{KInt\-Num\-Input}!KIntNumInput@{KIntNumInput}}
\index{KIntNumInput@{KIntNumInput}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Num\-Input::KInt\-Num\-Input (int {\em value}, {\bf QWidget} $\ast$ {\em parent} = 0, int {\em base} = 10, const char $\ast$ {\em name} = 0)}\label{classKIntNumInput_a1}


Constructor It constructs a {\bf QSpin\-Box} that allows the input of integer numbers in the range of -INT\_\-MAX to +INT\_\-MAX. 

To set a descriptive label, use {\bf set\-Label()}{\rm (p.\,\pageref{classKIntNumInput_a16})}. To enforce the value being in a range and optionally to attach a slider to it, use {\bf set\-Range()}{\rm (p.\,\pageref{classKIntNumInput_a10})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em value}]initial value for the control \item[{\em base}]numeric base used for display \item[{\em parent}]parent {\bf QWidget} \item[{\em name}]internal name for this widget \end{description}
\end{Desc}


Definition at line 277 of file knuminput.cpp.

References KStd\-Accel::name().\index{KIntNumInput@{KInt\-Num\-Input}!KIntNumInput@{KIntNumInput}}
\index{KIntNumInput@{KIntNumInput}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Num\-Input::KInt\-Num\-Input ({\bf KNum\-Input} $\ast$ {\em below}, int {\em value}, {\bf QWidget} $\ast$ {\em parent} = 0, int {\em base} = 10, const char $\ast$ {\em name} = 0)}\label{classKIntNumInput_a2}


Constructor. 

the difference to the one above is the \char`\"{}below\char`\"{} parameter. It tells this instance that it is visually put below some other {\bf KNum\-Input}{\rm (p.\,\pageref{classKNumInput})} widget. Note that these two KNum\-Input's need not to have the same parent widget or be in the same layout group. The effect is that it'll adjust it's layout in correspondence with the layout of the other KNum\-Input's (you can build an arbitary long chain).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em below}]append KInt\-Num\-Input to the {\bf KNum\-Input}{\rm (p.\,\pageref{classKNumInput})} chain \item[{\em value}]initial value for the control \item[{\em base}]numeric base used for display \item[{\em parent}]parent {\bf QWidget} \item[{\em name}]internal name for this widget \end{description}
\end{Desc}


Definition at line 264 of file knuminput.cpp.

References KStd\-Accel::name().\index{KIntNumInput@{KInt\-Num\-Input}!~KIntNumInput@{$\sim$KIntNumInput}}
\index{~KIntNumInput@{$\sim$KIntNumInput}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KInt\-Num\-Input::$\sim${\bf KInt\-Num\-Input} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntNumInput_a3}


Destructor. 



Definition at line 467 of file knuminput.cpp.

\subsection{Member Function Documentation}
\index{KIntNumInput@{KInt\-Num\-Input}!value@{value}}
\index{value@{value}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Num\-Input::value () const}\label{classKIntNumInput_a4}


\begin{Desc}
\item[Returns:]the current value. \end{Desc}


Definition at line 490 of file knuminput.cpp.

References QSpin\-Box::value().

Referenced by relative\-Value().\index{KIntNumInput@{KInt\-Num\-Input}!relativeValue@{relativeValue}}
\index{relativeValue@{relativeValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KInt\-Num\-Input::relative\-Value () const}\label{classKIntNumInput_a5}


\begin{Desc}
\item[Returns:]the curent value in units of the {\bf reference\-Point}{\rm (p.\,\pageref{classKIntNumInput_a6})}. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 485 of file knuminput.cpp.

References value().\index{KIntNumInput@{KInt\-Num\-Input}!referencePoint@{referencePoint}}
\index{referencePoint@{referencePoint}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Num\-Input::reference\-Point () const}\label{classKIntNumInput_a6}


\begin{Desc}
\item[Returns:]the current reference point \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 303 of file knuminput.cpp.

Referenced by set\-Range().\index{KIntNumInput@{KInt\-Num\-Input}!suffix@{suffix}}
\index{suffix@{suffix}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KInt\-Num\-Input::suffix () const}\label{classKIntNumInput_a7}


\begin{Desc}
\item[Returns:]the suffix displayed behind the value. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Suffix()}{\rm (p.\,\pageref{classKIntNumInput_i3})} \end{Desc}


Definition at line 386 of file knuminput.cpp.

References QSpin\-Box::suffix().\index{KIntNumInput@{KInt\-Num\-Input}!prefix@{prefix}}
\index{prefix@{prefix}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KInt\-Num\-Input::prefix () const}\label{classKIntNumInput_a8}


\begin{Desc}
\item[Returns:]the prefix displayed in front of the value. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Prefix()}{\rm (p.\,\pageref{classKIntNumInput_i4})} \end{Desc}


Definition at line 398 of file knuminput.cpp.

References QSpin\-Box::prefix().\index{KIntNumInput@{KInt\-Num\-Input}!specialValueText@{specialValueText}}
\index{specialValueText@{specialValueText}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KInt\-Num\-Input::special\-Value\-Text () const}\label{classKIntNumInput_a9}


\begin{Desc}
\item[Returns:]the string displayed for a special value. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Special\-Value\-Text()}{\rm (p.\,\pageref{classKIntNumInput_a15})} \end{Desc}


Definition at line 501 of file knuminput.cpp.

References QSpin\-Box::special\-Value\-Text().\index{KIntNumInput@{KInt\-Num\-Input}!setRange@{setRange}}
\index{setRange@{setRange}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Range (int {\em min}, int {\em max}, int {\em step} = 1, bool {\em slider} = true)}\label{classKIntNumInput_a10}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em min}]minimum value \item[{\em max}]maximum value \item[{\em step}]step size for the {\bf QSlider} \end{description}
\end{Desc}


Definition at line 320 of file knuminput.cpp.

References QWidget::layout(), QSpin\-Box::line\-Step(), reference\-Point(), QSpin\-Box::set\-Line\-Step(), QSpin\-Box::set\-Max\-Value(), QSpin\-Box::set\-Min\-Value(), QSlider::set\-Range(), set\-Reference\-Point(), QSlider::set\-Tick\-Interval(), QSlider::set\-Tickmarks(), set\-Value(), QSpin\-Box::value(), and value\-Changed().

Referenced by set\-Max\-Value(), and set\-Min\-Value().\index{KIntNumInput@{KInt\-Num\-Input}!setMinValue@{setMinValue}}
\index{setMinValue@{setMinValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Min\-Value (int {\em min})}\label{classKIntNumInput_a11}


Sets the minimum value. 



Definition at line 359 of file knuminput.cpp.

References QSpin\-Box::line\-Step(), QSpin\-Box::max\-Value(), and set\-Range().

Referenced by KFont\-Chooser::KFont\-Chooser().\index{KIntNumInput@{KInt\-Num\-Input}!minValue@{minValue}}
\index{minValue@{minValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Num\-Input::min\-Value () const}\label{classKIntNumInput_a12}


\begin{Desc}
\item[Returns:]the minimum value. \end{Desc}


Definition at line 364 of file knuminput.cpp.

References QSpin\-Box::min\-Value().

Referenced by set\-Reference\-Point().\index{KIntNumInput@{KInt\-Num\-Input}!setMaxValue@{setMaxValue}}
\index{setMaxValue@{setMaxValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Max\-Value (int {\em max})}\label{classKIntNumInput_a13}


Sets the maximum value. 



Definition at line 369 of file knuminput.cpp.

References QSpin\-Box::line\-Step(), QSpin\-Box::min\-Value(), and set\-Range().\index{KIntNumInput@{KInt\-Num\-Input}!maxValue@{maxValue}}
\index{maxValue@{maxValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KInt\-Num\-Input::max\-Value () const}\label{classKIntNumInput_a14}


\begin{Desc}
\item[Returns:]the maximum value. \end{Desc}


Definition at line 374 of file knuminput.cpp.

References QSpin\-Box::max\-Value().

Referenced by set\-Reference\-Point().\index{KIntNumInput@{KInt\-Num\-Input}!setSpecialValueText@{setSpecialValueText}}
\index{setSpecialValueText@{setSpecialValueText}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Special\-Value\-Text (const {\bf QString} \& {\em text})}\label{classKIntNumInput_a15}


Sets the special value text. 

If set, the Spin\-Box will display this text instead of the numeric value whenever the current value is equal to min\-Val(). Typically this is used for indicating that the choice has a special (default) meaning. 

Definition at line 495 of file knuminput.cpp.

References QWidget::layout(), and QSpin\-Box::set\-Special\-Value\-Text().\index{KIntNumInput@{KInt\-Num\-Input}!setLabel@{setLabel}}
\index{setLabel@{setLabel}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Label (const {\bf QString} \& {\em label}, int {\em a} = Align\-Left$|$Align\-Top)\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntNumInput_a16}


Sets the text and alignment of the main description label. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em label}]The text of the label. Use QString::null to remove an existing one.\item[{\em a}]one of {\tt Align\-Left}, {\tt Align\-HCenter}, YAlign\-Right and {\tt Align\-Top}, {\tt Align\-VCenter}, {\tt Align\-Bottom}. default is {\tt Align\-Left} $|$ {\tt Align\-Top}.\end{description}
\end{Desc}
The vertical alignment flags have special meaning with this widget:

\begin{itemize}
\item {\tt Align\-Top} The label is placed above the edit/slider \item {\tt Align\-VCenter} The label is placed left beside the edit \item {\tt Align\-Bottom} The label is placed below the edit/slider \end{itemize}


Reimplemented from {\bf KNum\-Input} {\rm (p.\,\pageref{classKNumInput_a3})}.

Definition at line 506 of file knuminput.cpp.

References KStd\-Accel::label(), QLabel::set\-Buddy(), and KNum\-Input::set\-Label().\index{KIntNumInput@{KInt\-Num\-Input}!minimumSizeHint@{minimumSizeHint}}
\index{minimumSizeHint@{minimumSizeHint}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QSize} KInt\-Num\-Input::minimum\-Size\-Hint () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKIntNumInput_a17}


This method returns the minimum size necessary to display the control. 

The minimum size is enough to show all the labels in the current font (font change may invalidate the return value).

\begin{Desc}
\item[Returns:]the minimum size necessary to show the control \end{Desc}


Reimplemented from {\bf QWidget}.

Definition at line 408 of file knuminput.cpp.

References QWidget::const\-Polish(), QSize::height(), and QSize::width().\index{KIntNumInput@{KInt\-Num\-Input}!setValue@{setValue}}
\index{setValue@{setValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Value (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKIntNumInput_i0}


Sets the value of the control. 



Definition at line 472 of file knuminput.cpp.

References QSpin\-Box::set\-Value().

Referenced by set\-Range(), and set\-Relative\-Value().\index{KIntNumInput@{KInt\-Num\-Input}!setRelativeValue@{setRelativeValue}}
\index{setRelativeValue@{setRelativeValue}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Relative\-Value (double)\hspace{0.3cm}{\tt  [slot]}}\label{classKIntNumInput_i1}


Sets the value in units of the {\bf reference\-Point}{\rm (p.\,\pageref{classKIntNumInput_a6})} \begin{Desc}
\item[Since:]3.1. \end{Desc}




Definition at line 478 of file knuminput.cpp.

References set\-Value().\index{KIntNumInput@{KInt\-Num\-Input}!setReferencePoint@{setReferencePoint}}
\index{setReferencePoint@{setReferencePoint}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Reference\-Point (int)\hspace{0.3cm}{\tt  [slot]}}\label{classKIntNumInput_i2}


Sets the reference point for {\bf relative\-Value}{\rm (p.\,\pageref{classKIntNumInput_a5})}. 

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


Definition at line 297 of file knuminput.cpp.

References max\-Value(), and min\-Value().

Referenced by set\-Range().\index{KIntNumInput@{KInt\-Num\-Input}!setSuffix@{setSuffix}}
\index{setSuffix@{setSuffix}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Suffix (const {\bf QString} \& {\em suffix})\hspace{0.3cm}{\tt  [slot]}}\label{classKIntNumInput_i3}


Sets the suffix to {\tt suffix}. 

Use QString::null to disable this feature. Formatting has to be provided (e.g. a space separator between the prepended {\tt value} and the suffix's text has to be provided as the first character in the suffix).

\begin{Desc}
\item[See also:]{\bf QSpin\-Box::set\-Suffix()}, {\bf set\-Prefix()}{\rm (p.\,\pageref{classKIntNumInput_i4})} \end{Desc}


Definition at line 379 of file knuminput.cpp.

References QWidget::layout(), and QSpin\-Box::set\-Suffix().\index{KIntNumInput@{KInt\-Num\-Input}!setPrefix@{setPrefix}}
\index{setPrefix@{setPrefix}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Prefix (const {\bf QString} \& {\em prefix})\hspace{0.3cm}{\tt  [slot]}}\label{classKIntNumInput_i4}


Sets the prefix to {\tt prefix}. 

Use QString::null to disable this feature. Formatting has to be provided (see above).

\begin{Desc}
\item[See also:]{\bf QSpin\-Box::set\-Prefix()}, {\bf set\-Suffix()}{\rm (p.\,\pageref{classKIntNumInput_i3})} \end{Desc}


Definition at line 391 of file knuminput.cpp.

References QWidget::layout(), and QSpin\-Box::set\-Prefix().\index{KIntNumInput@{KInt\-Num\-Input}!setEditFocus@{setEditFocus}}
\index{setEditFocus@{setEditFocus}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::set\-Edit\-Focus (bool {\em mark} = true)\hspace{0.3cm}{\tt  [slot]}}\label{classKIntNumInput_i5}


sets focus to the edit widget and marks all text in if mark == true 



Definition at line 403 of file knuminput.cpp.

References KInt\-Spin\-Box::set\-Edit\-Focus().\index{KIntNumInput@{KInt\-Num\-Input}!valueChanged@{valueChanged}}
\index{valueChanged@{valueChanged}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::value\-Changed (int)\hspace{0.3cm}{\tt  [signal]}}\label{classKIntNumInput_l0}


Emitted every time the value changes (by calling {\bf set\-Value}{\rm (p.\,\pageref{classKIntNumInput_i0})}() or by user interaction). 



Referenced by set\-Range().\index{KIntNumInput@{KInt\-Num\-Input}!relativeValueChanged@{relativeValueChanged}}
\index{relativeValueChanged@{relativeValueChanged}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::relative\-Value\-Changed (double)\hspace{0.3cm}{\tt  [signal]}}\label{classKIntNumInput_l1}


Emitted whenever {\bf value\-Changed}{\rm (p.\,\pageref{classKIntNumInput_l0})} is. 

Contains the change relative to the {\bf reference\-Point}{\rm (p.\,\pageref{classKIntNumInput_a6})}. \begin{Desc}
\item[Since:]3.1 \end{Desc}
\index{KIntNumInput@{KInt\-Num\-Input}!doLayout@{doLayout}}
\index{doLayout@{doLayout}!KIntNumInput@{KInt\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KInt\-Num\-Input::do\-Layout ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKIntNumInput_b0}


You need to overwrite this method and implement your layout calculations there. 

See {\bf KInt\-Num\-Input::do\-Layout}{\rm (p.\,\pageref{classKIntNumInput_b0})} and {\bf KDouble\-Num\-Input::do\-Layout}{\rm (p.\,\pageref{classKDoubleNumInput_b0})} implementation for details. 

Implements {\bf KNum\-Input} {\rm (p.\,\pageref{classKNumInput_b1})}.

Definition at line 433 of file knuminput.cpp.

References QLabel::set\-Buddy(), and QSize::width().

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