\section{KDouble\-Num\-Input Class Reference}
\label{classKDoubleNumInput}\index{KDoubleNumInput@{KDoubleNumInput}}
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. 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=72pt]{classKDoubleNumInput__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDouble\-Num\-Input:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=300pt]{classKDoubleNumInput__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Value} (double)
\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 {\bf reference\-Point}{\rm (p.\,\pageref{classKDoubleNumInput_a17})}. \item\end{CompactList}\item 
void {\bf set\-Reference\-Point} (double ref)
\begin{CompactList}\small\item\em Sets the reference Point to {\tt ref}. \item\end{CompactList}\item 
void {\bf set\-Suffix} (const  {\bf QString} \&suffix)
\begin{CompactList}\small\item\em Sets the suffix to be displayed to {\tt suffix}. \item\end{CompactList}\item 
void {\bf set\-Prefix} (const  {\bf QString} \&prefix)
\begin{CompactList}\small\item\em Sets the prefix to be displayed to {\tt prefix}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf value\-Changed} (double)
\begin{CompactList}\small\item\em Emitted every time the value changes (by calling {\bf set\-Value}{\rm (p.\,\pageref{classKDoubleNumInput_i0})}() or by user interaction). \item\end{CompactList}\item 
void {\bf relative\-Value\-Changed} (double)
\begin{CompactList}\small\item\em This is an overloaded member function, provided for convenience. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDouble\-Num\-Input} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs an input control for double values with initial value 0.00. \item\end{CompactList}\item 
{\bf KDouble\-Num\-Input} (double value, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.} (value is rounded to a multiple of 1/100) Constructor \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
virtual {\bf $\sim$KDouble\-Num\-Input} ()
\begin{CompactList}\small\item\em destructor \item\end{CompactList}\item 
{\bf KDouble\-Num\-Input} ({\bf KNum\-Input} $\ast$below, double value, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.} (rounds {\tt value} to a mulitple of 1/100) Constructor \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Sets the minimum value. \item\end{CompactList}\item 
double {\bf min\-Value} () const 
\item 
void {\bf set\-Max\-Value} (double max)
\begin{CompactList}\small\item\em Sets the maximum value. \item\end{CompactList}\item 
double {\bf max\-Value} () const 
\item 
void {\bf set\-Precision} (int precision)
\begin{CompactList}\small\item\em Specifies the number of digits to use. \item\end{CompactList}\item 
double {\bf reference\-Point} () const 
\item 
double {\bf relative\-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 \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} ()
\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{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*{Friends}
\begin{CompactItemize}
\item 
class {\bf KDouble\-Line}\label{classKDoubleNumInput_n0}

\end{CompactItemize}


\subsection{Detailed Description}
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. An input control for real 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 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} = 0, const char $\ast$ {\em name} = 0)}\label{classKDoubleNumInput_a0}


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



Definition at line 527 of file knuminput.cpp.

References KStd\-Accel::name().\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} = 0, const char $\ast$ {\em name} = 0)}\label{classKDoubleNumInput_a1}


{\bf This class or method is obsolete, it is provided for compatibility only.} (value is rounded to a multiple of 1/100) Constructor 

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

References KStd\-Accel::name().\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} = 0.01, int {\em precision} = 2, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 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 533 of file knuminput.cpp.

References KStd\-Accel::name().\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 563 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} = 0, const char $\ast$ {\em name} = 0)}\label{classKDoubleNumInput_a4}


{\bf This class or method is obsolete, it is provided for compatibility only.} (rounds {\tt value} to a mulitple of 1/100) Constructor 

puts it 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 556 of file knuminput.cpp.

References KStd\-Accel::name().\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} = 0.02, int {\em precision} = 2, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKDoubleNumInput_a5}


Constructor. 

puts it below other {\bf KNum\-Input}{\rm (p.\,\pageref{classKNumInput})}

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

References KStd\-Accel::name().

\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}


Definition at line 783 of file knuminput.cpp.

Referenced by relative\-Value().\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}


Definition at line 799 of file knuminput.cpp.\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}


Definition at line 804 of file knuminput.cpp.\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}


Definition at line 830 of file knuminput.cpp.\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 537 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} = 1, bool {\em slider} = 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} \end{description}
\end{Desc}


Definition at line 716 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 763 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}


Definition at line 768 of file knuminput.cpp.

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 773 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}


Definition at line 778 of file knuminput.cpp.

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 823 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 {\bf relative\-Value}{\rm (p.\,\pageref{classKDoubleNumInput_a18})} calculation \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 794 of file knuminput.cpp.

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 {\bf reference\-Point}{\rm (p.\,\pageref{classKDoubleNumInput_a17})}. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 788 of file knuminput.cpp.

References value().\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 835 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} = Align\-Left$|$Align\-Top)\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 843 of file knuminput.cpp.

References KStd\-Accel::label(), 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 696 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 {\bf reference\-Point}{\rm (p.\,\pageref{classKDoubleNumInput_a17})}. 

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


Definition at line 701 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 {\bf relative\-Value\-Changed}{\rm (p.\,\pageref{classKDoubleNumInput_l1})} is blocked and {\bf relative\-Value}{\rm (p.\,\pageref{classKDoubleNumInput_a18})} just returns 0. \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 709 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 809 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 816 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 {\bf reference\-Point}{\rm (p.\,\pageref{classKDoubleNumInput_a17})}. \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 690 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}
