\section{KDouble\-Num\-Input Class Reference}
\label{classKDoubleNumInput}\index{KDoubleNumInput@{KDoubleNumInput}}
An input control for real numbers, consisting of a spinbox and a slider.  


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

Inheritance diagram for KDouble\-Num\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=67pt]{classKDoubleNumInput__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDouble\-Num\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=260pt]{classKDoubleNumInput__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Value} (double)
\item 
void {\bf set\-Relative\-Value} (double)
\item 
void {\bf set\-Reference\-Point} (double ref)
\item 
void {\bf set\-Suffix} (const {\bf QString} \&suffix)
\item 
void {\bf set\-Prefix} (const {\bf QString} \&prefix)
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf value\-Changed} (double)
\item 
void {\bf relative\-Value\-Changed} (double)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDouble\-Num\-Input} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KDouble\-Num\-Input} (double value, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0) KDE\_\-DEPRECATED
\item 
{\bf KDouble\-Num\-Input} (double {\bf lower}, double upper, double value, double step=0.01, int precision=2, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KDouble\-Num\-Input} ()
\item 
{\bf KDouble\-Num\-Input} ({\bf KNum\-Input} $\ast$below, double value, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0) KDE\_\-DEPRECATED
\item 
{\bf KDouble\-Num\-Input} ({\bf KNum\-Input} $\ast$below, double {\bf lower}, double upper, double value, double step=0.02, int precision=2, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
double {\bf value} () const 
\item 
{\bf QString} {\bf suffix} () const 
\item 
{\bf QString} {\bf prefix} () const 
\item 
int {\bf precision} () const 
\item 
{\bf QString} {\bf special\-Value\-Text} () const 
\item 
void {\bf set\-Range} (double min, double max, double step=1, bool slider=true)
\item 
void {\bf set\-Min\-Value} (double min)
\item 
double {\bf min\-Value} () const 
\item 
void {\bf set\-Max\-Value} (double max)
\item 
double {\bf max\-Value} () const 
\item 
void {\bf set\-Precision} (int precision)
\item 
double {\bf reference\-Point} () const 
\item 
double {\bf relative\-Value} () const 
\item 
void {\bf set\-Special\-Value\-Text} (const {\bf QString} \&text)
\item 
virtual void {\bf set\-Label} (const {\bf QString} \&label, int a=Align\-Left$|$Align\-Top)
\item 
virtual {\bf QSize} {\bf minimum\-Size\-Hint} () const \label{classKDoubleNumInput_a21}

\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)\label{classKDoubleNumInput_a22}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf do\-Layout} ()
\item 
void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKDoubleNumInput_b1}

\item 
virtual void {\bf reset\-Edit\-Box} ()\label{classKDoubleNumInput_b2}

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

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
KDouble\-Line $\ast$ {\bf edit}\label{classKDoubleNumInput_p0}

\item 
bool {\bf m\_\-range}\label{classKDoubleNumInput_p1}

\item 
double {\bf m\_\-lower}\label{classKDoubleNumInput_p2}

\item 
double {\bf m\_\-upper}\label{classKDoubleNumInput_p3}

\item 
double {\bf m\_\-step}\label{classKDoubleNumInput_p4}

\item 
{\bf QSize} {\bf m\_\-size\-Edit}\label{classKDoubleNumInput_p5}

\end{CompactItemize}
\subsection*{Properties}
\begin{CompactItemize}
\item 
double {\bf value}\label{classKDoubleNumInput_00}

\item 
double {\bf min\-Value}\label{classKDoubleNumInput_01}

\item 
double {\bf max\-Value}\label{classKDoubleNumInput_02}

\item 
{\bf QString} {\bf suffix}\label{classKDoubleNumInput_03}

\item 
{\bf QString} {\bf prefix}\label{classKDoubleNumInput_04}

\item 
{\bf QString} {\bf special\-Value\-Text}\label{classKDoubleNumInput_05}

\item 
int {\bf precision}\label{classKDoubleNumInput_06}

\item 
double {\bf reference\-Point}\label{classKDoubleNumInput_07}

\item 
double {\bf relative\-Value}\label{classKDoubleNumInput_08}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KDouble\-Line}\label{classKDoubleNumInput_n0}

\end{CompactItemize}


\subsection{Detailed Description}
An input control for real numbers, consisting of a spinbox and a slider. 

KDouble\-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 float parameter. 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 KDouble\-Num\-Input, designed specifically for the situation when there are several instances 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 the {\bf KDouble\-Validator}{\rm (p.\,\pageref{classKDoubleValidator})} validator class. KDouble\-Num\-Input enforces the value to be in the given range, but see the class documentation of {\bf KDouble\-Spin\-Box}{\rm (p.\,\pageref{classKDoubleSpinBox})} for the tricky interrelationship of precision and values. All of what is said there applies here, too.

\begin{Desc}
\item[See also:]{\bf KInt\-Num\-Input}{\rm (p.\,\pageref{classKIntNumInput})}, {\bf KDouble\-Spin\-Box}{\rm (p.\,\pageref{classKDoubleSpinBox})} \end{Desc}




Definition at line 432 of file knuminput.h.

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


Constructs an input control for double values with initial value 0.00. 



Definition at line 544 of file knuminput.cpp.\index{KDoubleNumInput@{KDouble\-Num\-Input}!KDoubleNumInput@{KDoubleNumInput}}
\index{KDoubleNumInput@{KDoubleNumInput}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Num\-Input::KDouble\-Num\-Input (double {\em value}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDoubleNumInput_a1}


\begin{Desc}
\item[{\bf Deprecated}](value is rounded to a multiple of 1/100) Constructor \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em value}]initial value for the control \item[{\em parent}]parent {\bf QWidget} \item[{\em name}]internal name for this widget \end{description}
\end{Desc}


Definition at line 567 of file knuminput.cpp.\index{KDoubleNumInput@{KDouble\-Num\-Input}!KDoubleNumInput@{KDoubleNumInput}}
\index{KDoubleNumInput@{KDoubleNumInput}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Num\-Input::KDouble\-Num\-Input (double {\em lower}, double {\em upper}, double {\em value}, double {\em step} = {\tt 0.01}, int {\em precision} = {\tt 2}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDoubleNumInput_a2}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em lower}]lower boundary value \item[{\em upper}]upper boundary value \item[{\em value}]initial value for the control \item[{\em step}]step size to use for up/down arrow clicks \item[{\em precision}]number of digits after the decimal point \item[{\em parent}]parent {\bf QWidget} \item[{\em name}]internal name for this widget \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 550 of file knuminput.cpp.\index{KDoubleNumInput@{KDouble\-Num\-Input}!~KDoubleNumInput@{$\sim$KDoubleNumInput}}
\index{~KDoubleNumInput@{$\sim$KDoubleNumInput}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Num\-Input::$\sim${\bf KDouble\-Num\-Input} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKDoubleNumInput_a3}


destructor 



Definition at line 580 of file knuminput.cpp.\index{KDoubleNumInput@{KDouble\-Num\-Input}!KDoubleNumInput@{KDoubleNumInput}}
\index{KDoubleNumInput@{KDoubleNumInput}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Num\-Input::KDouble\-Num\-Input ({\bf KNum\-Input} $\ast$ {\em below}, double {\em value}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDoubleNumInput_a4}


\begin{Desc}
\item[{\bf Deprecated}](rounds {\tt value} to a multiple of 1/100) Constructor \end{Desc}
puts it visually below other {\bf KNum\-Input}{\rm (p.\,\pageref{classKNumInput})}

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


Definition at line 573 of file knuminput.cpp.\index{KDoubleNumInput@{KDouble\-Num\-Input}!KDoubleNumInput@{KDoubleNumInput}}
\index{KDoubleNumInput@{KDoubleNumInput}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDouble\-Num\-Input::KDouble\-Num\-Input ({\bf KNum\-Input} $\ast$ {\em below}, double {\em lower}, double {\em upper}, double {\em value}, double {\em step} = {\tt 0.02}, int {\em precision} = {\tt 2}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDoubleNumInput_a5}


Constructor. 

the difference here 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 arbitrary long chain).

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em below}]append KDouble\-Num\-Input to the KDouble\-Num\-Input chain \item[{\em lower}]lower boundary value \item[{\em upper}]upper boundary value \item[{\em value}]initial value for the control \item[{\em step}]step size to use for up/down arrow clicks \item[{\em precision}]number of digits after the decimal point \item[{\em parent}]parent {\bf QWidget} \item[{\em name}]internal name for this widget \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 558 of file knuminput.cpp.

\subsection{Member Function Documentation}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!value@{value}}
\index{value@{value}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KDouble\-Num\-Input::value () const}\label{classKDoubleNumInput_a6}


\begin{Desc}
\item[Returns:]the current value. \end{Desc}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!suffix@{suffix}}
\index{suffix@{suffix}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDouble\-Num\-Input::suffix () const}\label{classKDoubleNumInput_a7}


\begin{Desc}
\item[Returns:]the suffix. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Suffix()}{\rm (p.\,\pageref{classKDoubleNumInput_i3})} \end{Desc}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!prefix@{prefix}}
\index{prefix@{prefix}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDouble\-Num\-Input::prefix () const}\label{classKDoubleNumInput_a8}


\begin{Desc}
\item[Returns:]the prefix. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Prefix()}{\rm (p.\,\pageref{classKDoubleNumInput_i4})} \end{Desc}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!precision@{precision}}
\index{precision@{precision}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KDouble\-Num\-Input::precision () const}\label{classKDoubleNumInput_a9}


\begin{Desc}
\item[Returns:]the precision. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Precision()}{\rm (p.\,\pageref{classKDoubleNumInput_a16})} \end{Desc}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!specialValueText@{specialValueText}}
\index{specialValueText@{specialValueText}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDouble\-Num\-Input::special\-Value\-Text () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDoubleNumInput_a10}


\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{classKDoubleNumInput_a19})} \end{Desc}


Definition at line 547 of file knuminput.h.\index{KDoubleNumInput@{KDouble\-Num\-Input}!setRange@{setRange}}
\index{setRange@{setRange}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Range (double {\em min}, double {\em max}, double {\em step} = {\tt 1}, bool {\em slider} = {\tt true})}\label{classKDoubleNumInput_a11}


\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} \item[{\em slider}]whether the slider is created or not \end{description}
\end{Desc}


Definition at line 746 of file knuminput.cpp.

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

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


Sets the minimum value. 



Definition at line 793 of file knuminput.cpp.

References max\-Value(), and set\-Range().\index{KDoubleNumInput@{KDouble\-Num\-Input}!minValue@{minValue}}
\index{minValue@{minValue}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KDouble\-Num\-Input::min\-Value () const}\label{classKDoubleNumInput_a13}


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


Referenced by set\-Max\-Value(), and set\-Reference\-Point().\index{KDoubleNumInput@{KDouble\-Num\-Input}!setMaxValue@{setMaxValue}}
\index{setMaxValue@{setMaxValue}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Max\-Value (double {\em max})}\label{classKDoubleNumInput_a14}


Sets the maximum value. 



Definition at line 803 of file knuminput.cpp.

References min\-Value(), and set\-Range().\index{KDoubleNumInput@{KDouble\-Num\-Input}!maxValue@{maxValue}}
\index{maxValue@{maxValue}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KDouble\-Num\-Input::max\-Value () const}\label{classKDoubleNumInput_a15}


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


Referenced by set\-Min\-Value(), and set\-Reference\-Point().\index{KDoubleNumInput@{KDouble\-Num\-Input}!setPrecision@{setPrecision}}
\index{setPrecision@{setPrecision}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Precision (int {\em precision})}\label{classKDoubleNumInput_a16}


Specifies the number of digits to use. 



Definition at line 853 of file knuminput.cpp.

References QWidget::layout().\index{KDoubleNumInput@{KDouble\-Num\-Input}!referencePoint@{referencePoint}}
\index{referencePoint@{referencePoint}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KDouble\-Num\-Input::reference\-Point () const}\label{classKDoubleNumInput_a17}


\begin{Desc}
\item[Returns:]the reference point for relative\-Value calculation \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Referenced by set\-Range().\index{KDoubleNumInput@{KDouble\-Num\-Input}!relativeValue@{relativeValue}}
\index{relativeValue@{relativeValue}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}double KDouble\-Num\-Input::relative\-Value () const}\label{classKDoubleNumInput_a18}


\begin{Desc}
\item[Returns:]the current value in units of reference\-Point. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!setSpecialValueText@{setSpecialValueText}}
\index{setSpecialValueText@{setSpecialValueText}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Special\-Value\-Text (const {\bf QString} \& {\em text})}\label{classKDoubleNumInput_a19}


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 865 of file knuminput.cpp.

References QWidget::layout().\index{KDoubleNumInput@{KDouble\-Num\-Input}!setLabel@{setLabel}}
\index{setLabel@{setLabel}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Label (const {\bf QString} \& {\em label}, int {\em a} = {\tt AlignLeft$|$AlignTop})\hspace{0.3cm}{\tt  [virtual]}}\label{classKDoubleNumInput_a20}


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 873 of file knuminput.cpp.

References QLabel::set\-Buddy(), and KNum\-Input::set\-Label().\index{KDoubleNumInput@{KDouble\-Num\-Input}!setValue@{setValue}}
\index{setValue@{setValue}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Value (double)\hspace{0.3cm}{\tt  [slot]}}\label{classKDoubleNumInput_i0}


Sets the value of the control. 



Definition at line 726 of file knuminput.cpp.

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


Sets the value in units of reference\-Point. 

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


Definition at line 731 of file knuminput.cpp.

References set\-Value().\index{KDoubleNumInput@{KDouble\-Num\-Input}!setReferencePoint@{setReferencePoint}}
\index{setReferencePoint@{setReferencePoint}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Reference\-Point (double {\em ref})\hspace{0.3cm}{\tt  [slot]}}\label{classKDoubleNumInput_i2}


Sets the reference Point to {\tt ref}. 

It {\tt ref} == 0, emitting of relative\-Value\-Changed is blocked and relative\-Value just returns 0. \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 739 of file knuminput.cpp.

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

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


Sets the suffix to be displayed to {\tt suffix}. 

Use QString::null to disable this feature. Note that the suffix is attached to the value without any spacing. So if you prefer to display a space separator, set suffix to something like \char`\"{} cm\char`\"{}. \begin{Desc}
\item[See also:]{\bf set\-Suffix()}{\rm (p.\,\pageref{classKDoubleNumInput_i3})} \end{Desc}


Definition at line 839 of file knuminput.cpp.

References QWidget::layout().\index{KDoubleNumInput@{KDouble\-Num\-Input}!setPrefix@{setPrefix}}
\index{setPrefix@{setPrefix}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::set\-Prefix (const {\bf QString} \& {\em prefix})\hspace{0.3cm}{\tt  [slot]}}\label{classKDoubleNumInput_i4}


Sets the prefix to be displayed to {\tt prefix}. 

Use QString::null to disable this feature. Note that the prefix is attached to the value without any spacing. \begin{Desc}
\item[See also:]{\bf set\-Prefix()}{\rm (p.\,\pageref{classKDoubleNumInput_i4})} \end{Desc}


Definition at line 846 of file knuminput.cpp.

References QWidget::layout().\index{KDoubleNumInput@{KDouble\-Num\-Input}!valueChanged@{valueChanged}}
\index{valueChanged@{valueChanged}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::value\-Changed (double)\hspace{0.3cm}{\tt  [signal]}}\label{classKDoubleNumInput_l0}


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



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


This is an overloaded member function, provided for convenience. 

It essentially behaves like the above function.

Contains the value in units of reference\-Point. \begin{Desc}
\item[Since:]3.1 \end{Desc}
\index{KDoubleNumInput@{KDouble\-Num\-Input}!doLayout@{doLayout}}
\index{doLayout@{doLayout}!KDoubleNumInput@{KDouble\-Num\-Input}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDouble\-Num\-Input::do\-Layout ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKDoubleNumInput_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 720 of file knuminput.cpp.

References QSize::width().

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